rstats-wtf/what-they-forgot

Advice re: creating user library doesn't quite make sense

Opened this issue · 0 comments

Here:

https://rstats.wtf/maintaining-r#how-to-transfer-your-library-when-updating-r

We advise folks to run this code to make sure the default R_LIBS_USER directory exists, after an R upgrade, but before re-installing add-on packages:

fs::dir_create(Sys.getenv("R_LIBS_USER"))

But, by definition, they won't have fs (yet). So this snippet should really be base R code probably.