Re: [Rd] a package installation problem on windows

2008-07-28 Thread Prof Brian Ripley
Nothing in the documentation says that DLLs created in the source directory will be installed -- this applies only to pkgname.dll. We recommend you use R CMD INSTALL [--build], not R CMD build --binary. It is very rare to need a src/Makefile.win, but it you choose to use one yo do need to ensu

[Rd] a package installation problem on windows

2008-07-28 Thread Gang Liang
Dear all, I encountered a problem when test installing a package of my own under the windows platform. The latest Rtools is installed, and Makefile.win is used for directing the compilation of C++ codes under the src directory. A sketch of the Makefile.win is as follows: --- Makefile.win (old) --

Re: [Rd] grid.ls() after grid.remove() fails

2008-07-28 Thread Paul Murrell
Hi Felix Andrews wrote: > Dr Murrell and others, > > It seems grid.ls() fails after any use of grid.remove(). It gives an > infinite recursion error even in the simplest cases, and no matter > what arguments are passed to grid.ls. Yep, blatant error in the code. I will have a fix in the deve

[Rd] S4 classes that extend S3 classes

2008-07-28 Thread John Chambers
Up to now, writing an S4 class that extends an S3 class (using contains= in the call to setClass) has been discouraged for two main reasons: 1. You can't say anything formal about S3 classes, so validating objects, having formal slots for their properties, etc. are not generally feasible.

Re: [Rd] equivalent to "require" for imports? (cairoDevice)

2008-07-28 Thread Michael Lawrence
On Mon, Jul 28, 2008 at 6:33 AM, Prof Brian Ripley <[EMAIL PROTECTED]>wrote: > On Mon, 28 Jul 2008, Felix Andrews wrote: > > Hi R-devel >> >> I use the packages RGtk2 and cairoDevice. The cairoDevice package has >> a few stand-alone functions, plus "asCairoDevice" which depends on >> RGtk2 and ca

Re: [Rd] equivalent to "require" for imports? (cairoDevice)

2008-07-28 Thread Prof Brian Ripley
On Mon, 28 Jul 2008, Felix Andrews wrote: Hi R-devel I use the packages RGtk2 and cairoDevice. The cairoDevice package has a few stand-alone functions, plus "asCairoDevice" which depends on RGtk2 and calls require(RGtk2). So cairoDevice lists RGtk2 under "Suggests" in the DESCRIPTION file. It c

[Rd] equivalent to "require" for imports? (cairoDevice)

2008-07-28 Thread Felix Andrews
Hi R-devel I use the packages RGtk2 and cairoDevice. The cairoDevice package has a few stand-alone functions, plus "asCairoDevice" which depends on RGtk2 and calls require(RGtk2). So cairoDevice lists RGtk2 under "Suggests" in the DESCRIPTION file. It can not Import RGtk2 because that would force

Re: [Rd] cairo device and pch="+"

2008-07-28 Thread Prof Brian Ripley
We do document (in 'Writing R Extensions') how to find such leaks using valgrind, so in would have been very much more helpful to have done so. (Note that we know cairo 1.6.4 leaks small amounts of memory, more in older versions.) The problem was in ucstoutf8 and is now fixed. On Mon, 28 Jul

[Rd] cairo device and pch="+"

2008-07-28 Thread Laurent Gautier
Dear list, I have spotted what could be a memory leak somewhere. The example below shows how to quickly use up RAM on a linux machine (the example is taylored for a 2Gb machine, change the size of the matrix m is needed). # --- m <- matrix(rnorm(130), nrow=6000, 6) X11(type="cairo") pairs(m) #

[Rd] grid.ls() after grid.remove() fails

2008-07-28 Thread Felix Andrews
Dr Murrell and others, It seems grid.ls() fails after any use of grid.remove(). It gives an infinite recursion error even in the simplest cases, and no matter what arguments are passed to grid.ls. > library(grid) > grid.newpage() > grid.lines(name="foo") > grid.ls() foo > grid.remove("foo") > gri