[R] installing packages systemwide

Yihui Xie xie at yihui.name
Fri Aug 19 19:34:48 CEST 2011


Take a look at:

R CMD INSTALL --help

and you will realize that you need to specify the library path, e.g. R
CMD INSTALL anRpackage --library=/usr/local/...

or take a look at ?install.packages and use the second argument, e.g.
install.packages('anRpackage', lib = '/usr/local/...')


Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Fri, Aug 19, 2011 at 12:10 PM, Mary Kindall <mary.kindall at gmail.com> wrote:
> I installed some downloaded packages in R. I always do
> $sudo R CMD INSTALL <anRpackage.tar.gz>
>
>
> By default it is storing these packages into my directory
> /home/mary/R/x86_64-pc-linux-gnu-library/2.13/.
>
> However I want them to be systemwide into /usr/local/lib/R/site-library/
> folder.
>
> I tried
> $sudo R
> R> install.packages("anRpackage", dep=TRUE)
>
> I did not succeed into getting them install in req folder.
> Any idea?
>
>
>
> --
> -------------
> Mary Kindall
> Yorktown Heights, NY
> USA
>
>        [[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