[R] Automating package updates after major version change

Rich Shepard r@hep@rd @end|ng |rom @pp|-eco@y@@com
Thu May 14 19:05:53 CEST 2020


On Sun, 26 Apr 2020, Sarah Goslee wrote:

> Not so coincidentally, I just worked thru this for myself.
> http://numberwright.com/2020/04/clean-and-new/

Sarah,

This isn't working for me on Slackware-14.2/x86_64. My R library is in
/usr/lib64/R/library/ and I copied the contents to a text file, one package
per line.

Using the filename, packagelist, as an argument to install.packages() fails:
> install.packages(packagelist)
Error in install.packages(packagelist) : object 'packagelist' not found

Adding quotes didn't help.

Creating a script, newversionupdate.R, containing the line,
install.packages(packagelist)

and sourcing it also failed.

What might I be doing incorrectly?

Regards,

Rich



More information about the R-help mailing list