Setting working directory (Julia versus R)
September 24, 2018 by Kinh Nguyen
In R, you can set working directory with
setwd("~/Desktop")
But Julia does not automatically expande the tilde ~
notation
julia> cd("~/Dropbox")
ERROR: chdir ~/
You need to ask Julia to expand tilde for you with expanduser
function
cd(expanduser("~/Documents/myProjs/COPD/"))
Enjoy!