Skip to content

Installing packages without clicking

2 messages · Mario Alfonso Morales Rivera, Brian Ripley

#
I need to install several (too many) packages from local *.zip
files.

is there any form to do it  without clicking?

I'm asking for a R code that allow me perform these task.



-----------------------------------
Mario Alfonso Morales Rivera.
Profesor Asistente.
Departamento de Matem??ticas y estad??stica.
Universidad de C??rdoba.
#
On Tue, 14 Feb 2006, Mario Alfonso Morales Rivera wrote:

            
See ?install.packages.

You seem to be using Windows (you did not say).  So the help page says

    repos: character vector, the base URL(s) of the repositories to use,
           i.e., the URL of the CRAN master such as
           '"http://cran.r-project.org"' or its Statlib mirror,
           '"http://lib.stat.cmu.edu/R/CRAN"'. Can be 'NULL' to install
           from local '.zip' files.

and so all you need is

install.packages(c("my1.zip", "my2.zip"), repos = NULL)