Hi, I didn't find any post on this subject so I ll ask you some advices. Let's say that I have two library trees. Number 1 is the default R library tree on path1 Number 2 is another library tree on a server with all packages on path2. When I set library(aaMI,lib.loc=paths2) it loads the package even if its not on default R library When I set library(fOptions,lib.loc=paths2) it doesn't load because timeSeries is not on default R library (timeSeries is a required package for fOptions)> library(fOptions,lib.loc=.lib.loc)Le chargement a nécessité le package : timeDate Le chargement a nécessité le package : timeSeries Erreur : le package 'timeSeries' ne peut être chargé De plus : Message d'avis : In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : aucun package nommé 'timeSeries' n'est trouvé (Sorry for french error message. By the way, how can I set error in French (setting language in English in R installation is not sufficient !) How can I set lib.loc for every package that I will load ? Or is there any global way of doing this ? Thanks, Olivier Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net [[alternative HTML version deleted]]
>>>>> "o" == omerle <omerle at laposte.net> >>>>> on Thu, 2 Sep 2010 10:30:49 +0200 (CEST) writes:o> Hi, o> I didn't find any post on this subject so I ll ask you some advices. o> Let's say that I have two library trees. o> Number 1 is the default R library tree on path1 o> Number 2 is another library tree on a server with all packages on path2. o> When I set library(aaMI,lib.loc=paths2) it loads the package even if its not on default R library o> When I set library(fOptions,lib.loc=paths2) it doesn't load because timeSeries is not on default R library (timeSeries is a required package for fOptions) >> library(fOptions,lib.loc=.lib.loc) o> Le chargement a n??cessit?? le package : timeDate o> Le chargement a n??cessit?? le package : timeSeries o> Erreur : le package 'timeSeries' ne peut ??tre charg?? o> De plus : Message d'avis : o> In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) : o> ?? aucun package nomm?? 'timeSeries' n'est trouv?? o> (Sorry for french error message. By the way, how can I set error in French (setting language in English in R installation is not sufficient !) o> How can I set lib.loc for every package that I will load ? o> Or is there any global way of doing this ? There are several possibilities .. You can set .libPaths() in your Rprofile or you can set R_LIBS in your Renviron and there are variations and combinations of the above. See ?Startup to learn about Rprofile and Renviron settings. Martin Maechler, ETH Zurich o> Thanks, o> Olivier