rstudio different library path to command-line R (`$R_LIBS_USER`)

后端 未结 2 921
执念已碎
执念已碎 2021-02-08 05:36

I\'m trying to work out why my .libPath is different between command-line R and RStudio Desktop (NOTE: this is not a duplicate of

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-08 06:17

    Just to document here in case someone finds it useful, according to ArchWiki we can define R_LIBS_USER in ~/.Renviron, which I feel is a more convenient way to define specific variables for R.

提交回复
热议问题