Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Change default RStudio start-up working directory? #255

@2533245542

Description

@2533245542

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions