简体   繁体   中英

Installing R libraries by simply pasting the folders with packages to R-3.6.1\library location

I know there are plenty of ways to install packages but I obtained a zipped folder containing lots of folders with r packages. Is that ok to simply unzip the folder, copy all the folders and paste them to R-3.6.1\library location? Will that work properly?

You're talking about the installed package folders that were built and installed on another computer?

You'd want to be sure they are from the same operating system and version of R.

It also depends if there are any unmet or potentially conflicting dependencies. If not, in theory it should work.

But you'll then get notified of package updates. So it will only save you time installing them in the first place.

You could always switch between the package libs location when starting RStudio, by setting the " R_LIBS_USER " environment variable. Then update those packages (and get a sense of how safe it is), and you'll probably run into less chance of issues when you soft-copy them across to your primary location.

And please backup the primary location first if you need to restore it to that point.

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