[R] listing datasets from all my packages

From: Elizabeth Purdom <epurdom_at_stanford.edu>
Date: Tue 19 Jul 2005 - 07:17:46 EST


Hi,
I am using R 2.1.0 on Windows XP and when I type data() to list the datasets in R, there is a helpful hint to type 'data(package = .packages(all.available = TRUE))' to see the datasets in all of the packages -- not just the active ones.

However, when I do this, I get the following message:
> data(package = .packages(all.available = TRUE))
Error in rbind(...) : number of columns of matrices must match (see arg 2) In addition: Warning messages:
1: datasets have been moved from package 'base' to package 'datasets' in: data(package = .packages(all.available = TRUE)) 2: datasets have been moved from package 'stats' to package 'datasets' in: data(package = .packages(all.available = TRUE))

I possibly have old libraries in my R libraries because I copy them forward and update them with new versions of R, rather than redownload them. Is there a way to fix this or do the same another way? (I saw something in archives about a problem similar to this with .packages(), but I got the impression it was fixed for 2.1.0)

Thanks,
Elizabeth



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 19 07:21:52 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:46 EST