How to automatically load settings in R on OSX? How to find R_HOME, configure Rprofile.site, etc?

前端 未结 3 792
清歌不尽
清歌不尽 2021-01-31 00:04

I have a Macintosh and I am trying to automatically load packages, homemade functions, and use modified setting every time I start R. I believe this can be done with a file call

3条回答
  •  天涯浪人
    2021-01-31 00:36

    Over the years I have come to rely on the help(Startup) documentation as the best place to read up on this. There are numerous per-user and per-site configuration file as is customary for rich applications. It may seem like overkill at first but it is a really good system. And once you grok Renviron versus Renviron.site and dito for Rprofile, you appreciate the consistent behaviour across platforms.

提交回复
热议问题