[R-sig-Debian] Changing R_LIB_USER variable in ubuntu...
Kenneth Takagi
katakagi at bu.edu
Sun May 30 16:22:18 CEST 2010
thank a lot for you answer. Since I'm new to linux, I still have a
couple questions based on your response:
1) do I create a file named .Renvirons or just Renvirons in my home directory?
@) In the following lines of the script:
> ### Packages in the home directory:
> R_LIBS="~/.R-site/site-library:${R_LIBS}"
how exactly would I change the file path to"~/R/2.11/library") for example?
Thanks for putting up with my limited knowledge, I'm slowly learning!
Best,
Ken
Quoting Christophe Bonenfant <bonenfan at biomserv.univ-lyon1.fr>:
> Dear Ken,
>
> I changed the lib path as you would like on my Debian system. The only
> thing you have to do is to create a .Renviron file in your home directory.
>
> Mine looks like:
>
> ### xpdf as the default pdf viewer
> R_PDFVIEWER='/usr/bin/xpdf'
>
> ### To get R in English:
> LANGUAGE=en
>
> ### Packages in the home directory:
> R_LIBS="~/.R-site/site-library:${R_LIBS}"
>
> Change the path to your convenience. R will read this file when
> launched. You will not need root privileges to intall packages anymore.
>
> Hope this helps.
>
> Christophe
>
> Le 30/05/2010 05:44, Kenneth Takagi a écrit :
>> Hi,
>>
>> I'm an experienced R user on windows, but new to linux. This may be an
>> issue with how R (or Ubuntu) was install on my computer, but maybe not.
>> I just installed Ubuntu 10.04, I have administrator privileges and am
>> using R 2.11. Here goes:
>>
>> I'd like to change the location where R installs packages not included
>> in the base installation (using install.packages()). Right now it is
>> saving them to
>> "/home/ken/R/i486-pc-linux-gnu-library/2.11" like it should based on
>> the default R_LIB_USER setting in /etc/R/Renviron.
>>
>> I think that this is quite a bulky filepath and would prefer to shorten
>> it (ie. "~/R/2.11/library"). Unfortunately, /etc/R/ is read only for me
>> (as is /usr/R/). Therefore I can't change the R_LIB_USER variable. I
>> understand the rationale behind protecting /etc/ and /usr/, but is there
>> any way to customize this variable once and not worry about it when I
>> install future packages?
>>
>> Thank a lot!
>>
>> Ken
>>
>> _______________________________________________
>> R-SIG-Debian mailing list
>> R-SIG-Debian at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-debian
>>
>>
>
> --
> ________________________________________________________
>
> UMR CNRS 5558,
> Laboratoire Biométrie et Biologie Évolutive
> Université Claude Bernard, Lyon 1
> 43, boulevard du 11 novembre 1918
> 69622 Villeurbanne Cedex
> FRANCE \\\
> ( ">
> Phone : (+33) 4 72 44 81 11 )(
> Fax: (+33) 4 72 43 13 88 // )
> --//""--
>
> http://krikouille.free.fr/~bonenfan/site/kris.html
> ________________________________________________________
>
>
More information about the R-SIG-Debian
mailing list