[R-sig-Debian] Changing R_LIB_USER variable in ubuntu...

Kenneth Takagi katakagi at bu.edu
Sun May 30 16:54:35 CEST 2010


Thanks, I will give this a try and see how it goes!

Best,
Ken




Quoting Christophe Bonenfant <bonenfan at biomserv.univ-lyon1.fr>:

> Hi Ken,
>
>> thank a lot for you answer.  Since I'm new to linux, I still have a
>> couple questions based on your response:
>
> You're welcome, no problem!
>
>> 1) do I create a file named .Renvirons or just Renvirons in my home
>> directory?
>
> Create a ".Renviron" file with a dot, meaning this file is hidden. And
> as far as I know R will be looking for a .Renviron but not Renviron file
> by default.
>
> Try "ls -a" in a shell to see all the hidden files of your 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?
>
> Well, I would try this:
>
> R_LIBS="~/R/2.11/library:${R_LIBS}"
>
> then you will have the following structure:
>
> /home/ken/
> ----------/R/2.11/library/
> --------------------------package1/
> --------------------------package2/
> ...
>
> in your home directory.
>
> The point is that you now have a /R folder in you home when browsing
> files with Nautilus. Once again, add a dot before to make it hidden
> (ctrl+H to see it in Nautilus then) and keep things tidy in your home.
>
> As Mickael rightly  pointed out, this way of managing libraries is
> local, it means that another user of you computer will not see and nor
> access the libraries you installed as "ken" user. To do so, you need to
> install package as a root as Mickael suggests.
>
>> Thanks for putting up with my limited knowledge, I'm slowly learning!
>
> It is a matter of weeks, then you'll feel comfortable with the
> configuration file in GNU/Linux.
>
> Good luck!
>
> Christophe
>
>
>



More information about the R-SIG-Debian mailing list