Corrected: dir.create(file.path(path.expand('~'), 'library')) myLibrary <- file.path(path.expand('~'), 'library') install.packages('package', lib = myLibrary) library(package, lib = myLibrary)
#or .libPaths(c(.libPaths(), myLibrary)) library(package) On 29/02/2008, Henrique Dallazuanna <[EMAIL PROTECTED]> wrote: > See this: > > myLibrary <- file.path(path.expand('~'), 'library') > install.packages('package', lib = myLibrary) > library(package, lib = myLibrary) > > #or > .libPaths(c(.libPaths(), myLibrary)) > library(package) > > > On 29/02/2008, Daoping Mo <[EMAIL PROTECTED]> wrote: > > Dear Sir/Madam, > > > > I got some problem about using R. > > I am a student, and need to use R a lot. But sometimes when I am working > in > > computer lab, we can not install some particular pacakges by ourselves > because > > of the previliges. > > > > Can the folder of Librabry of R, move to, for instance the personal > folder, my > > documents... then we can install any specified package? > > > > Best regards, > > > > > > ========================================================= > > > > Daoping Mo > > Via Real Collegio 30, CORPIE 10024, Moncalieri, Italy. > > Tel: +39 - 329-1865124 (Better after GMT 15:00, thanks!) > > Email: [EMAIL PROTECTED] > > > > ______________________________________________ > > R-help@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. > > > > > > -- > Henrique Dallazuanna > Curitiba-Paraná-Brasil > 25° 25' 40" S 49° 16' 22" O > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O ______________________________________________ R-help@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.