Hello all, I use R on both windows and a "mainframe" linux installation (RedHat enterprise 3.0, which they tell me is soon to be upgraded to 4.0). On windows I installed the package gplots without trouble, and it works fine. When I attempted to do the same on the unix computer, the following error message was forthcoming: downloaded 216Kb * Installing *source* package 'gplots' ... ** R ** data ** inst ** preparing package for lazy loading Loading required package: gtools Warning in library(pkg, character.only = TRUE, logical = TRUE, lib.loc = lib.loc) : there is no package called 'gtools' Error: package 'gtools' could not be loaded Execution halted ERROR: lazy loading failed for package 'gplots' ** Removing '/n/fs/disk/resuser02/u/zelickr/R/library/gplots' The downloaded packages are in /tmp/RtmpikM2JW/downloaded_packages Warning messages: 1: installation of package 'gplots' had non-zero exit status in: install.packages("gplots", lib = "~/R/library") 2: cannot create HTML package index in: tools:::unix.packages.html(.Library) Can someone provide the bit of information I need to progress with this? Thanks very much, =Randy R. Zelick email: zelickr at pdx.edu Department of Biology voice: 503-725-3086 Portland State University fax: 503-725-3888 mailing: P.O. Box 751 Portland, OR 97207 shipping: 1719 SW 10th Ave, Room 246 Portland, OR 97201
install gtools package firstly Aimin At 12:17 PM 2/20/2007, Randy Zelick wrote:>gtools'
well, it's complaining because you don't have gtools installed. how about: install.packages("gplots", dep=T) ? b On Feb 20, 2007, at 1:17 PM, Randy Zelick wrote:> Hello all, > > I use R on both windows and a "mainframe" linux installation (RedHat > enterprise 3.0, which they tell me is soon to be upgraded to 4.0). On > windows I installed the package gplots without trouble, and it > works fine. > When I attempted to do the same on the unix computer, the following > error > message was forthcoming: > > > > > downloaded 216Kb > > * Installing *source* package 'gplots' ... > ** R > ** data > ** inst > ** preparing package for lazy loading > Loading required package: gtools > Warning in library(pkg, character.only = TRUE, logical = TRUE, > lib.loc > lib.loc) : > there is no package called 'gtools' > Error: package 'gtools' could not be loaded > Execution halted > ERROR: lazy loading failed for package 'gplots' > ** Removing '/n/fs/disk/resuser02/u/zelickr/R/library/gplots' > > The downloaded packages are in > /tmp/RtmpikM2JW/downloaded_packages > Warning messages: > 1: installation of package 'gplots' had non-zero exit status in: > install.packages("gplots", lib = "~/R/library") > 2: cannot create HTML package index in: > tools:::unix.packages.html(.Library) > > > > Can someone provide the bit of information I need to progress with > this? > > Thanks very much, > > =Randy> > R. Zelick email: zelickr at pdx.edu > Department of Biology voice: 503-725-3086 > Portland State University fax: 503-725-3888 > > mailing: > P.O. Box 751 > Portland, OR 97207 > > shipping: > 1719 SW 10th Ave, Room 246 > Portland, OR 97201 > > ______________________________________________ > R-help at 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 > and provide commented, minimal, self-contained, reproducible code.
On Tue, 2007-02-20 at 10:17 -0800, Randy Zelick wrote:> Hello all, > > I use R on both windows and a "mainframe" linux installation (RedHat > enterprise 3.0, which they tell me is soon to be upgraded to 4.0). On > windows I installed the package gplots without trouble, and it works fine. > When I attempted to do the same on the unix computer, the following error > message was forthcoming: > > > > > downloaded 216Kb > > * Installing *source* package 'gplots' ... > ** R > ** data > ** inst > ** preparing package for lazy loading > Loading required package: gtools > Warning in library(pkg, character.only = TRUE, logical = TRUE, lib.loc = > lib.loc) : > there is no package called 'gtools' > Error: package 'gtools' could not be loaded > Execution halted > ERROR: lazy loading failed for package 'gplots' > ** Removing '/n/fs/disk/resuser02/u/zelickr/R/library/gplots' > > The downloaded packages are in > /tmp/RtmpikM2JW/downloaded_packages > Warning messages: > 1: installation of package 'gplots' had non-zero exit status in: > install.packages("gplots", lib = "~/R/library") > 2: cannot create HTML package index in: > tools:::unix.packages.html(.Library) > > > > Can someone provide the bit of information I need to progress with this? > > Thanks very much, > > =Randygplots has a dependency on other packages (gtools and gdata). Thus, when you install it use: install.packages("gplots", dependencies = TRUE, ...) That will download and install the other packages as well. There should have been a similar requirement under Windows, so not sure what may have been different there, unless there is some confounding due to your not installing the packages in standard locations, given some of the output above. I presume that this is because you don't have root access on the Linux server and you are installing to your local user path. HTH, Marc Schwartz
Thanks to the many folks who responded, and apologies for being so dense! The different behavior between windows and linux relative to install defaults tripped me up. I had not thought about the dependencies switch. All working fine now. Cheers, =Randy R. Zelick email: zelickr at pdx.edu Department of Biology voice: 503-725-3086 Portland State University fax: 503-725-3888 mailing: P.O. Box 751 Portland, OR 97207 shipping: 1719 SW 10th Ave, Room 246 Portland, OR 97201