[R] ctv, install.views, install.packages (& update.packages)

Achim Zeileis Achim.Zeileis at wu-wien.ac.at
Mon Apr 14 21:58:40 CEST 2008

On Mon, 14 Apr 2008, Vorlow Constantinos wrote:

> Dear all,
> Wouldn't it be helpful if the
> install.views
> install.packages
> update.packages
> had a "downloadonly=TRUE" flag which would allow us to download the
> packages and install them later (or put them in a USB stick and take
> them for installation on anothe PC).
> I am behind a firewall (Bank) and I have serious plroblem updating R or
> installing views (Finance, Econometrics etc. etc.). The download breaks
> up somehow and the installation or the update never completes...  From
> my ADSL at home, there is no such problem.... We can not use FTP
> either....
> I am particularly interested in the install.views that would allow a
> bundle of packages to be downloaded and installed  offline....

It seems that download.packages() would do what you want to do.

For example, if you want to download all packages from the "Finance" view
you could do:

library("ctv")             ## load package
x <- available.views()     ## get information about all available views
x <- x[[6]]                ## select Finance view
download.packages(x$packagelist$name, "path/to/downloaddir")

which downloads all packages from the view into the specified directory.


> Is the above possible now? If it is already, please disregard my silly
> email...
> Best regards,
> Costas
> P Think before you print.
> Disclaimer:
> This e-mail is confidential. If you are not the intended recipient, you should not copy it, re-transmit it, use it or disclose its contents, but should return it to the sender immediately and delete the copy from your system.
> EFG Eurobank Ergasias S.A. is not responsible for, nor endorses, any opinion, recommendation, conclusion, solicitation, offer or agreement or any information contained in this communication.
> EFG Eurobank Ergasias S.A. cannot accept any responsibility for the accuracy or completeness of this message as it has been transmitted over a public network. If you suspect that the message may have been intercepted or amended, please call the sender.
> 	[[alternative HTML version deleted]]
> ______________________________________________
> 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.

More information about the R-help mailing list