Mario Alfonso Morales Rivera
2006-Feb-14 16:45 UTC
[R] Installing packages without clicking
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:> 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.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) -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
> I need to install several (too many) packages from local *.zip > files. >Are you aware of being able to select multiple .zip files at one time using SHIFT-click or CTRL-click?> is there any form to do it without clicking? > > I'm asking for a R code that allow me perform these task. >You could just do what the clicking does, i.e. call the function install.packages() with appropriate parameters. See utils:::menuInstallLocal Hope this helps, Ray Brownrigg