On Mon, Nov 29, 2010 at 10:57 PM, Gabor Grothendieck <ggrothendi...@gmail.com> wrote: > On Mon, Nov 29, 2010 at 10:43 PM, Stephen Liu <sati...@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 ______________________________________________ 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.