[R] Where is gdata?
ggrothendieck at gmail.com
Wed Dec 1 13:32:33 CET 2010
On Sun, Nov 28, 2010 at 6:44 AM, Stephen Liu <satimis at yahoo.com> wrote:
> Hi folks,
> Win 7 64 bit
> R 32 bit
> Installing package(s) into ‘C:\Users\satimiswin764\Documents/R/win-library/2.12’
> (as ‘lib’ is unspecified)
> --- Please select a CRAN mirror for use in this session ---
> also installing the dependency ‘gmodels’
> trying URL
> Content type 'application/zip' length 76016 bytes (74 Kb)
> opened URL
> downloaded 74 Kb
> trying URL
> Content type 'application/zip' length 97482 bytes (95 Kb)
> opened URL
> downloaded 95 Kb
> package 'gmodels' successfully unpacked and MD5 sums checked
> package 'gregmisc' successfully unpacked and MD5 sums checked
> The downloaded packages are in
> Installation went through without problem.
> Loading required package: gmodels
> Loading required package: gplots
> Loading required package: gtools
> Loading required package: caTools
> Loading required package: bitops
> Loading required package: grid
> Attaching package: 'gplots'
> The following object(s) are masked from 'package:stats':
> Warning message:
> The `gregmisc' *package* has converted into a *bundle*
> containing four sub-packages: gdata, gtools, gmodels, and gplots.
> Please load these packages directly.
> Error: object 'gdata' not found
> Error: could not find function "gdata"
> Please advise what mistake I have committed. TIA
In the end it appears that there was no problem in accessing the gdata
package or any of its components and that the poster's problem stemmed
from issuing this series of commands:
at which point the poster saw the names of AER data files listed and
assumed that the data() command showed the data set names of the last
loaded library. Based on this assumption when he issued this series
and saw AER listed again he thought that gdata had not been loaded.
In fact the data() command lists the names of the data sets of *all*
installed packages, and not just the last loaded one, so if AER is the
alphabetically first package that is installed it will always appear
first. Thus to view gdata's data set names in this list one would
have to scroll down to view the names off the screen.
Things which confused the issue further were that the poster was using
a virtual machine to run R, which might have caused problems in
determining where the library was located but in fact did not, and one
responder somehow assumed that the question related to read.xls (a
function in gdata) and its perl dependency but as indicated the
problem actually had nothing specifically to do with gdata at all much
less read.xls or perl.
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
email: ggrothendieck at gmail.com
More information about the R-help