-
Notifications
You must be signed in to change notification settings - Fork 169
Change default RStudio start-up working directory? #255
Comments
|
Thanks for the help! I used
|
Maybe this can help: https://stackoverflow.com/questions/40248908/context-or-workdir-for-docker-compose |
Problem solved. This line of code was added to the docker file. |
this works but how can we set the working directory |
These days we are using this in another setting (and I am a bystander here, someone else worked this out):
There may be additional documentation in some places... |
Tried this, no error when building the image but had an error when running the container: Dockerfile:
Build command: The good news is that the error disappeared when commenting |
Hello,
I used RStudio a lot but I am pretty new to rocker and Docker.
Currently, when starting the RStudio in Docker, it defaults to point to /home/rstudio as working directory.
I am wondering if there is a way to set a customized working directory such that when starting up, RStudio goes to the customized working directory directly?
I tried adding this to the docker file to change the default working directory of RStudio but it didn't work.
RUN echo "setwd(\"~/../home/rstudio/workspace/\")" > ~/.Rprofile #set up working diretory
The text was updated successfully, but these errors were encountered: