I want to add some customization to my .Rprofile. However, I cannot seem to find the file.
Many have said it is located in my ~/ folder. I have unhidden all my hidden files and do not seem to find it. Also looked in R.Frameworks.
Not finding anything. I assume that I have one, as R fires up and works fine.
Any other search methods?
My system is Mac OSX 10.8, R 3.0, RStudio
Rprofile files live in the base of the user's home directory, and project-level . Rprofile files live in the base of the project directory. R will source only one . Rprofile file.
Renviron file is sourced. Typically . Rprofile is located in the users' home directory ( ~/. Rprofile ), however a different location can be configured by setting the R_PROFILE_USER environment variable.
my favorite way would be to open a Terminal window, and type:
touch ~/.Rprofile
open ~/.Rprofile
or
open -a Textedit ~/.Rprofile
this way you save yourself from a) the possibility of overwriting an existing file that you didn't find; b) fiddling with the way the Finder hides/shows system files; c) problems with overzealous text editors/OS that insist on adding file extensions, or don't like system files.
since you are using OS X:
in text edit -
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With