Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • This doesn't work for me (neither does the solution from BondedDust). I created a txt file and saved it as .Rprofile in the folder from getwd().
    – John
    Commented Apr 7, 2014 at 18:01
  • 2
    @John I believe that we are saying the same thing. Commented Apr 7, 2014 at 21:04
  • 6
    R reads .Rprofile from your HOME directory not from your CURRENT directory.
    – kgui
    Commented Jun 21, 2016 at 21:29
  • I came up with a similar approach, the solution is presented in as a solution to this question stackoverflow.com/questions/31707941/…
    – Marco
    Commented Mar 7, 2017 at 8:49
  • To find the home directroy issue the r command Sys.getenv("HOME") in the r console. I am not sure if you get the desired output. I think the desired output is that what 42 showed in his answer stackoverflow.com/a/15170774/754550 . He uses .libPaths in a slighly different way.
    – miracle173
    Commented Mar 15, 2017 at 8:07