Skip to content

installing a package in linux

5 messages · Fahim Md, Tengfei Yin, Ruihong Huang +1 more

#
On 05/05/2010 02:44 AM, Tengfei Yin wrote:
There is nothing to do with the editor. I guess, you should run "sudo R" 
(you shouldn't use this to run a normal R session) in Ubuntu, which will 
give you the right to write into the R directory typically in /usr/lib.  
And then using "install.packages('package.name')" inside this R 
session.  To load a library at beginning of each R session, you might 
consider the .First  function like,

.First <- function(){
   library('package.name')
   invisible()
}

and then quite R session with work space saved.

Best,

Ruihong
#
There are a lot of R packages available in Ubuntu's repositories. Just search 
for R-* or r-cran-* within Your favorite package manager. It it the easiest 
way. :-)
Best regards,
Vojt?ch Zeisek

Dne St 5. kv?tna 2010 17:03:22 Tengfei Yin napsal(a):