简体   繁体   中英

Do I need to install.packages every time I use Rscript in linux command line?

I am using bio3d package in R and use Rscript to run it in the Linux command line. Do I need to install packages every time I run the R file or only library it after the first time of installation like what we used to do in the Rstudio?

Thank you.

You only need to install a package once per installation of R/major R version. (A "major version" of R refers to the second digit of the version number, eg you need to re-install packages when moving from version 3.5.2 to 3.6.0 or from 3.6.1 to 4.0.1, but not when moving from version 4.0.0 to 4.0.1.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM