Rstudio 초기설정
Console의 Buffer 늘리고 싶을때
rstudioapi::writeRStudioPreference("console_max_lines", 666666L)
restart
rm(list=ls()); gc() e <- as.environment("tools:rstudio"); e$.rs.restartR()
소스 path보기
![](https://onesixx.com/wp-content/uploads/2019/11/image-5.png)
초기설정 (Tools > Global Options)
General
- 작업디렉토리 설정
"Default working directory (when not in a project):" : RStudio에서 사용할 작업폴더 지정
![](http://onesixx.com/wp-content/uploads/2017/10/a58026298faf464106859c14c7af0236.png)
Code :: Editing
![](https://onesixx.com/wp-content/uploads/2020/01/image-60.png)
Code :: Display
![](http://onesixx.com/wp-content/uploads/2017/12/bb48a7ea77bdaf3a93f8468de15dc97d.png)
예를 들어 str()이 truncated되지 않도록 하려면 아래와 같이 list.len을 설정하고,
Df %>% str(list.len=ncol(.))
Console에서도 truncated되지 않도록 하려면 Limit length를 늘려준다. 99999...
Code :: Saving
Encoding설정
'Default text encoding: ' 란에 'UTF-8' 을 선택후, 재시작
![](http://onesixx.com/wp-content/uploads/2016/12/0a0e2d18f1e6da9ad8eb02dd3f4c2b02.png)
Code :: Completion
![](http://onesixx.com/wp-content/uploads/2017/09/850c08da49667b94637104ac3fc0e513.png)
Code :: Diagnostics
![](http://onesixx.com/wp-content/uploads/2017/09/a016f53b9183a5a51d81ceb0d751d9de.png)
Appearence
Editor theme
Monokai http://onesixx.com/rstudio-monokai-css/
![](http://onesixx.com/wp-content/uploads/2017/09/04dd38a7c3fef95c1c9c389a2f1918ff.png)
Pane Layout
![](http://onesixx.com/wp-content/uploads/2017/09/7f1cdd6a9de4ce5c088ad064ee382c69.png)
Packages
https://support.rstudio.com/hc/en-us/articles/206827897
![](http://onesixx.com/wp-content/uploads/2017/09/548416c19777dab917c35d7f20a79f6e.png)
R Markdown
![](http://onesixx.com/wp-content/uploads/2017/09/5563ac3e15564e2e08e5f85af626db06.png)