[R] loading a package within R, in a MS Windows environment?

Erik Iverson eriki at ccbr.umn.edu
Fri Aug 20 21:46:59 CEST 2010


Are you just looking for:

library(zoo)

?

Eva Nordstrom wrote:
> I am using R 2.11.1 in a Microsoft Windows environment. Is there a way to load a 
> package (e.g. the zoo package) using only "written code", not menus or mouse 
> clicks?
> 
> The "code" below code brings up the "Select One" [package] menu.  I just want to 
> automatically load the "zoo package".
> 
>  local({pkg <- select.list(sort(.packages(all.available = TRUE)),graphics=TRUE) 
> + if(nchar(pkg)) library(pkg, character.only=TRUE)})
> 
> 
> 
>       
> 	[[alternative HTML version deleted]]
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list