(REQUIRES use of Rstudio!)
Use the commmand:
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
How to allow a script to set the working directory to the location of that script file. Richie Cotton's answer here:
(REQUIRES use of Rstudio!) Use the commmand: setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
Categories
All
Archives
December 2016
AboutThis blog is mainly for statistics, R, or Duke-related stuff that is not directly relating to research activity. |