Hi folks, Win 7 64 bit R 32 bit> install.packages("gregmisc")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 'http://cran.ms.unimelb.edu.au/bin/windows/contrib/2.12/gmodels_2.15.0.zip' Content type 'application/zip' length 76016 bytes (74 Kb) opened URL downloaded 74 Kb trying URL 'http://cran.ms.unimelb.edu.au/bin/windows/contrib/2.12/gregmisc_2.1.1.zip' 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 C:\Users\satimiswin764\AppData\Local\Temp\RtmpP3dNfa\downloaded_packages Installation went through without problem.> library(gregmisc)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': lowess Warning message: The `gregmisc' *package* has converted into a *bundle* containing four sub-packages: gdata, gtools, gmodels, and gplots. Please load these packages directly.> library(gdata) > gdataError: object 'gdata' not found> gdata()Error: could not find function "gdata" Please advise what mistake I have committed. TIA B.R. Stephen L [[alternative HTML version deleted]]
On Sun, Nov 28, 2010 at 12:44 PM, Stephen Liu <satimis at yahoo.com> wrote:>> library(gdata) >> gdata > Error: object 'gdata' not found > >> gdata() > Error: could not find function "gdata" > > > Please advise what mistake I have committed. ?TIA >Try help(package=gdata) Regards Liviu> > B.R. > Stephen L > > > > ? ? ? ?[[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. > >-- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Hi, Stephen: What operating system do you have? From the path you cite, I assume you are using some version of Windows. Wikipedia on "perl" says there are two primary version of perl for Windows" Strawberry perl, which is free, open source, and ActivePerl, which is free but not open source. I've been using Strawberry perl without any apparent problems due to the version. When I removed "~Rtools/perl" from my path, it still had Strawberry perl, and 'installXLSXsupport()' worked with my installation of Strawberry perl, when it had not worked with "~Rtools/perl". You can download Strawberry perl from "http://strawberryperl.com". However, RSiteSearch('strawberry perl') produced 0 matches, while RSiteSearch("ActivePerl") returned 2 matches and RSiteSearch("Active Perl") found 10 matches. After downloading and installing one of these, if 'installXLSXsupport()' still does not work, you need to check the path: If 'installXLSXsupport()' does not work with Strawberry perl as the first perl in your path, then you may need to install an appropriate package from CPAN. More than that, I cannot answer. However, if you download and install one of these two versions of perl and still have the problem, please report what you've done and they symptoms you get to this list. Also, please include "sessionInfo()" with your reply. Hope this helps. Spencer On 11/28/2010 6:38 PM, Stephen Liu wrote:> Hi Spencer, > > Win 7 > > I can't find the folders RTools\perl > > perl is on C:\Users\satimis\My Document\R\win-library\2.12\gdata\perl > > Nor I can find the folder "Strawberry perl". Can you help? TIA > > > B.R. > Stephen L > > > > > ________________________________ > From: Spencer Graves<spencer.graves at structuremonitoring.com> > To: Stephen Liu<satimis at yahoo.com> > Sent: Mon, November 29, 2010 12:58:25 AM > Subject: Re: [R] Where is gdata? > > Hi, Stephen: Have you solved the problem yet? If no, see below. Spencer > > ####################### > Hello, All: > > > Prof. Ripley suggested I remove RTools/perl from my path. I did > that leaving Strawberry perl. Then everything seemed to work appropriately. > > > Thanks to all. > Spencer > > > On 11/28/2010 7:49 AM, Gabor Grothendieck wrote: >> On Sun, Nov 28, 2010 at 10:40 AM, Spencer Graves >> <spencer.graves at structuremonitoring.com> wrote: >>> I tried "install.packages('gregmisc')", which Stephen said he had. >>> Then " help(pac=gdata)" seemed to work normally. However, when I then >>> tried "library(gdata)", I got an error message from the the operating >>> system, saying "perl.exe has stopped working". I cancelled past that and >>> got a message "gdata: Unable to load perl libaries needed by read.xls() ... >>> Run the function 'installXLSXsupport()'". I tried 'installXLSXsupport()' >>> and again perl stopped working. I quit R and tried >>> "install.packages('gdata')" again, and it killed perl again. >>> >>> >>> Before installing 'gregmisc', I had tried install.packages('gdata') by >>> itself. That seemed to work. Then I manually removed it and tried >>> 'gregmisc', as Stephen had, and got problems I don't know how to solve. >>> >>> >>> ??? >>> Thanks, >>> Spencer >>> >>> ############################## >>> >>>> library(gdata) >>> gdata: Unable to load perl libaries needed by read.xls() >>> gdata: to support 'XLX' (Excel 97-2004) files. >>> >>> gdata: Unable to load perl libaries needed by read.xls() >>> gdata: to support 'XLSX' (Excel 2007+) files. >>> >>> gdata: Run the function 'installXLSXsupport()' >>> gdata: to automatically download and install the perl >>> gdata: libaries needed to support Excel XLS and XLSX formats. >>> >> Read ?installXLSXsupport >> >-- Spencer Graves, PE, PhD President and Chief Operating Officer Structure Inspection and Monitoring, Inc. 751 Emerson Ct. San Jos?, CA 95126 ph: 408-655-4567
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 > >> install.packages("gregmisc") > 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 > 'http://cran.ms.unimelb.edu.au/bin/windows/contrib/2.12/gmodels_2.15.0.zip' > Content type 'application/zip' length 76016 bytes (74 Kb) > opened URL > downloaded 74 Kb > > trying URL > 'http://cran.ms.unimelb.edu.au/bin/windows/contrib/2.12/gregmisc_2.1.1.zip' > 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 > ? ? ? ?C:\Users\satimiswin764\AppData\Local\Temp\RtmpP3dNfa\downloaded_packages > > Installation went through without problem. > > >> library(gregmisc) > 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': > > ? ?lowess > > Warning message: > > ? ? ? ?The `gregmisc' *package* has converted into a *bundle* > ? ? ? ?containing four sub-packages: gdata, gtools, gmodels, and gplots. > ? ? ? ?Please load these packages directly. > > >> library(gdata) >> gdata > Error: object 'gdata' not found > >> gdata() > Error: could not find function "gdata" > > > Please advise what mistake I have committed. ?TIAIn 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: library(AER) data() 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 of commands: library(gdata) data() 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. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com