[R] Where is gdata?
Gabor Grothendieck
ggrothendieck at gmail.com
Tue Nov 30 05:00:08 CET 2010
On Mon, Nov 29, 2010 at 10:57 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
> On Mon, Nov 29, 2010 at 10:43 PM, Stephen Liu <satimis at yahoo.com> wrote:
>> Hi Gabor,
>>
>>> Your library may not be set to what you think it is. Try issuing this
>>> command to discover which libraries its using:
>>
>>> .libPaths()
>> [1] "C:\\Users\\satimiswin764\\Documents/R/win-library/2.12"
>> [2] "C:/PROGRA~1/R/R-212~1.0/library"
>>
>>
>>> and read the help for that command. Also try this:
>>
>>> library()
>>
>>> which will list each library and the packages in it.
>>
>> gdata is on;
>> Packages in library 'C:\Users\satimiswin764\Documents/R/win-library/2.12':
>>
>> It is on user's library folder NOT on PROGRA library fold.
>>
>
> Try this:
>
> lib.loc <- .libPaths()
> for (lib in lib.loc) {
> dirs <- list.files(lib, pattern = paste("^", pkg, "$", sep = ""),
> full.names = TRUE)
> paths <- c(paths, dirs[file.info(dirs)$isdir &
> file.exists(file.path(dirs, "DESCRIPTION"))])
> }
> dirs
> paths
>
Before entering the above enter this:
paths <- ""
pkg <- "gdata"
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
More information about the R-help
mailing list