how to install R 3.0.1
On 01.06.2013 14:58, Uwe Ligges wrote:
On 01.06.2013 02:02, Ranjan Maitra wrote:
On Fri, 31 May 2013 18:10:19 -0500 Robert Baer <rbaer at atsu.edu> wrote:
On 5/31/2013 11:59 AM, Ranjan Maitra wrote:
Hi John, I suspect you may be missing a c()? On Fri, 31 May 2013 06:05:45 -0800 John Kane <jrkrideau at inbox.com> wrote:
paks <- install.packages( "Hmisc", "plyr")
paks <- install.packages( c("Hmisc", "plyr"))
install.packages(paks) You can use the command library() to get a list of what is installed on your machine.
Is it possible to get this as a vector of only the package names, or is post-processing the output of library() the only way out?
Do you mean something like: paks = library()$results[,1] save(paks, file = 'paks.RData') Rob
Exactly! Then install.packages(library()$results[,1]) does all the updated installs in one shot.
Why do you want to reinstall all packages? I'd go for udpate.packages(checkBuilt=TRUE) if a reinstallation after an update of R is what you are aiming at.
.... and forgot to add: installed.packages() is certainly more appropriate than library() to find the names of installed packages (with less overhead and hence faster). Best, Uwe Ligges
Best, Uwe Ligges
Thanks! Ranjan
____________________________________________________________ GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys Works with AIM?, MSN? Messenger, Yahoo!? Messenger, ICQ?, Google Talk? and most webmails ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.