Rprofile and worksplace

97 views Asked by At

I'm using macOS and I have a Rstudio, I always use my personal folder to work with R in Rstudio, I set the default working directory by

Rstudio -> Preference -> General -> R Session

and add

~/R

as the Default working directory.

Then I created a .Rprofile just to increase the history size by creating a .Rprofile file as:

usethis::edit_r_profile()

and the add the next line

## Increase the size of my Rhistory file
Sys.setenv(R_HISTSIZE='100000')

and then save it using the floppy icon, and it create the .Rprofile in:

~/.Rprofile

my question is, do I have to change the .Rprofile to the working directory ?

 ~/R/.Rprofile

or it has to be in home ?

~/.Rprofile

and if I want to move it to my personal working directory (~/R), how to make that Rstudio load it from my personal folder ???

Thanks

0

There are 0 answers