Re: [Rd] Unexpected failure when calling new() with unnamed arg and

2015-05-13 Thread Martin Maechler
Hervé Pagès hpa...@fredhutch.org on Tue, 12 May 2015 15:18:42 -0700 writes: Hi, The man page for new() suggests that if 'a' is an object with slots slot1 and slot2 and C is a class that extends the class of 'a', then the 2 following calls should be equivalent: new(C, a, ...)

Re: [Rd] Alternative for wildcard gnu extension in Makevars

2015-05-13 Thread Jan van der Laan
On 13-05-15 18:08, Gábor Csárdi wrote: On Wed, May 13, 2015 at 12:05 PM, Jan van der Laan rh...@eoos.dds.nl mailto:rh...@eoos.dds.nl wrote: [...] Too bad. Since it is only a handful of files, I will probably move them directly into the src directory and prefix them. It would have

Re: [Rd] Alternative for wildcard gnu extension in Makevars

2015-05-13 Thread Henrik Bengtsson
While at it: 'Makevars' is an R invention (i.e. documentation of it is only available through the R docs), correct? /Henrik On Wed, May 13, 2015 at 10:10 AM, Kevin Ushey kevinus...@gmail.com wrote: One other solution that's only a little crazy: you could have a R function within your package

[Rd] example fails during R CMD CHECK but works interactively?

2015-05-13 Thread Charles Determan
Greetings, I am collaborating with developing the bigmemory package and have run in to a strange problem when we run R CMD CHECK. For some reason that isn't clear to us one of the examples crashes stating: Error: memory could not be allocated for instance of type big.matrix You can see the

Re: [Rd] example fails during R CMD CHECK but works interactively?

2015-05-13 Thread Dan Tenenbaum
- Original Message - From: Charles Determan cdeterma...@gmail.com To: r-devel@r-project.org Sent: Wednesday, May 13, 2015 11:31:36 AM Subject: [Rd] example fails during R CMD CHECK but works interactively? Greetings, I am collaborating with developing the bigmemory package and

Re: [Rd] CRAN check for package on Sparc Solaris

2015-05-13 Thread Viechtbauer Wolfgang (STAT)
Thank you for the kind offer! Unfortunately, the problem is really Sparc Solaris: http://cran.r-project.org/web/checks/check_results_metafor.html On Solaris x86 and all other flavors, it passes without errors. Best, Wolfgang From: Gábor Csárdi [csardi.ga...@gmail.com] Sent: Wednesday, May 13,

Re: [Rd] LDFLAGS defined in R_MAKEVARS_USER file is ignored for R CMD SHLIB on Windows

2015-05-13 Thread Jim Hester
I have tracked this discrepancy down to the use of `SHLIB_LD` rather than `SHLIB_LINK` in share/make/winshlib.mk https://github.com/wch/r-source/blob/7348d71d1cb18e9c4b55950fd57198e8d2abcc8b/share/make/winshlib.mk. This variable has been used in winshlib.mk since svn r47953

Re: [Rd] example fails during R CMD CHECK but works interactively?

2015-05-13 Thread Charles Determan
Thank you Dan but it isn't my tests that are failing (all of them pass without problem) but one of the examples from the inst/examples directory. I did try, however, to start R with the environmental variables as you suggest but it had no effect on my tests. Charles On Wed, May 13, 2015 at 1:51

Re: [Rd] CRAN check for package on Sparc Solaris

2015-05-13 Thread Gábor Csárdi
Hi Wolfgang, I can test your package, please send it to me in private. Btw. I only have an x86 machine, and no sparc, so if your problem is sparc-specific, then my test is probably useless. Gabor On Wed, May 13, 2015 at 3:48 PM, Viechtbauer Wolfgang (STAT)

[Rd] CRAN check for package on Sparc Solaris

2015-05-13 Thread Viechtbauer Wolfgang (STAT)
Dear All, The metafor package currently fails CRAN checks on Sparc Solaris: http://cran.r-project.org/web/checks/check_results_metafor.html The problem is probably due to an unintended (= stupid) use of identical() in a couple tests. I have changed that to more appropriate tests using

Re: [Rd] Unexpected failure when calling new() with unnamed arg and

2015-05-13 Thread Hervé Pagès
Thanks Martin for looking into this. H. On 05/13/2015 03:57 AM, Martin Maechler wrote: Hervé Pagès hpa...@fredhutch.org on Tue, 12 May 2015 15:18:42 -0700 writes: Hi, The man page for new() suggests that if 'a' is an object with slots slot1 and slot2 and C is a class that extends

[Rd] Alternative for wildcard gnu extension in Makevars

2015-05-13 Thread Jan van der Laan
I have some cpp-files from another library (boost) in a subdirectory in my src directory (src/boost_src). I include these using the following two lines in my Makevars: SOURCES = $(wildcard *.cpp boost_src/*.cpp) OBJECTS = $(SOURCES:.cpp=.o) However, R CMD check complains about my use of

Re: [Rd] Alternative for wildcard gnu extension in Makevars

2015-05-13 Thread Dirk Eddelbuettel
On 13 May 2015 at 17:27, Jan van der Laan wrote: | | I have some cpp-files from another library (boost) in a subdirectory | in my src directory (src/boost_src). I include these using the | following two lines in my Makevars: | | SOURCES = $(wildcard *.cpp boost_src/*.cpp) | OBJECTS =

Re: [Rd] Alternative for wildcard gnu extension in Makevars

2015-05-13 Thread Gábor Csárdi
On Wed, May 13, 2015 at 12:05 PM, Jan van der Laan rh...@eoos.dds.nl wrote: [...] Too bad. Since it is only a handful of files, I will probably move them directly into the src directory and prefix them. It would have been nice to have been able to keep them separate. If it is a couple of

Re: [Rd] Alternative for wildcard gnu extension in Makevars

2015-05-13 Thread Jan van der Laan
Dirk Eddelbuettel e...@debian.org schreef: On 13 May 2015 at 17:27, Jan van der Laan wrote: | | I have some cpp-files from another library (boost) in a subdirectory | in my src directory (src/boost_src). I include these using the | following two lines in my Makevars: | | SOURCES = $(wildcard

Re: [Rd] Why is the diag function so slow (for extraction)?

2015-05-13 Thread Henrik Bengtsson
As kindly pointed out to me (oh my decaying gray matter), is.object() is better suited for this test; $ svn diff src/library/base/R/diag.R Index: src/library/base/R/diag.R === --- src/library/base/R/diag.R (revision 68345) +++

[Rd] Reading exit code of pipe()

2015-05-13 Thread Jeroen Ooms
Is there a way to get the status code of a pipe() command? The documentation suggests that it might be returned by close, however this does not seem to be the case. con - pipe(cat /etc/passwd, r) stream - readLines(con, n = 10) err - close(con) print(err)

Re: [Rd] Reading exit code of pipe()

2015-05-13 Thread Kevin Ushey
Hi Jeroen, I think `pipe` might just be returning the status code of the underlying command executed; for example, I get a status code of '0' when I test a pipe on `ls`: conn - pipe(ls) stream - readLines(conn) print(close(conn)) Similarly, I get an error code if I try to `ls` a

Re: [Rd] Alternative for wildcard gnu extension in Makevars

2015-05-13 Thread Kevin Ushey
One other solution that's only a little crazy: you could have a R function within your package that generates the appropriate (portable) Makevars, and within the package `configure` script call that function. For example R --vanilla --slave -e source('R/makevars.R'); makevars() And that

Re: [Rd] Why is the diag function so slow (for extraction)?

2015-05-13 Thread Radford Neal
From: Martin Maechler maech...@lynne.stat.math.ethz.ch diag() should not work only for pure matrices, but for all matrix-like objects for which ``the usual methods'' work, such as as.vector(.), c(.) That's why there has been the c(.) in there. You can always make code faster if you

Re: [Rd] Alternative for wildcard gnu extension in Makevars

2015-05-13 Thread Dirk Eddelbuettel
On 13 May 2015 at 10:10, Kevin Ushey wrote: | One other solution that's only a little crazy: you could have a R | function within your package that generates the appropriate (portable) | Makevars, and within the package `configure` script call that | function. For example | | R --vanilla

Re: [Bioc-devel] Use and Usability metrics / shields

2015-05-13 Thread Dan Tenenbaum
- Original Message - From: Martin Morgan mtmor...@fredhutch.org To: bioc-devel@r-project.org Sent: Saturday, May 9, 2015 10:15:13 AM Subject: [Bioc-devel] Use and Usability metrics / shields Bioc developers! It's important that our users be able to identify packages that are

Re: [Bioc-devel] Use and Usability metrics / shields

2015-05-13 Thread Henrik Bengtsson
Sweet; you went live with the badges/shields, e.g. http://bioconductor.org/packages/release/bioc/html/affxparser.html A positive side effect is that now there's a link from the package page to to the package's check results, which I always wanted :) Thanks for adding this /Henrik On Sun,