rstudio / packrat

Packrat is a dependency management system for R
http://rstudio.github.io/packrat/
402 stars 90 forks source link

Replace references to deprecated flag `--slave` with `-s` #606

Closed scottmmjackson closed 4 years ago

scottmmjackson commented 4 years ago

https://github.com/rstudio/packrat/blob/653bded75c4e058271810e7f04012225b6553581/inst/resources/mac_r_userlib.sh#L35-L41

https://github.com/rstudio/packrat/blob/653bded75c4e058271810e7f04012225b6553581/R/hooks.R#L138

https://github.com/rstudio/packrat/blob/26bfe9e357c9a056faecc32b8ccccdd72e642ae9/inst/resources/init.R#L177

From R 4.0.1 forward, --slave is deprecated: https://cran.r-project.org/doc/manuals/r-release/NEWS.html

https://github.com/wch/r-source/commit/f1ff49e74593341c74c20de9517f31a22c8bcb04

-s is an undocumented alias for the flag formerly --slave now --no-echo and thus ensures backwards compatibility. Alternatively, going forward, we could trap for the R version to be called and choose -s or --no-echo as needed.