Re: [Rd] S4 method dispatch sometimes leads to incorrect when object loaded from file?

2015-05-11 Thread Martin Morgan
On 05/10/2015 08:19 AM, Martin Morgan wrote: Loading an S4 object from a file without first loading the library sometimes (?, the example below and actual example involves a virtual base class and the show generic) leads to incorrect dispatch (to the base class method). The attached package repr

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

2015-05-11 Thread Steve Bronder
Sorry if this is a re-post, not sure if my original message got though. Is it possible to replace c() with .subset()? Or would this throw errors because of something specific in c() or as.matrix()? There's a pretty nice speed up by replacing c() with the .subset(). Ex. library(microbenchmark)

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

2015-05-11 Thread Jim Hester
Example input and output to reproduce this can be found at https://gist.github.com/jimhester/b7f05f50794c88e44b17. I tested this attempting to compile the [digest]( http://cran.r-project.org/web/packages/digest/index.html) package, `run.sh` and `run.bat` were both run in the package source directo

Re: [Rd] PATCH: library(..., quietly=TRUE) still outputs "Loading required package: ..." (forgot to pass down 'quietly')

2015-05-11 Thread Martin Maechler
> Henrik Bengtsson > on Sat, 9 May 2015 13:57:12 -0700 writes: > Calling library(..., quietly=TRUE) may still output: > Loading required package: > in some cases, e.g. >> library("R.utils", quietly=TRUE) > Loading required package: R.methodsS3 > [...] >

Re: [Rd] Wrongly checked MD5 checksums in R 3.2.0's windows binary

2015-05-11 Thread Brian Ripley
> On 11 May 2015, at 16:00, peter dalgaard wrote: > > >> On 11 May 2015, at 15:53 , Duncan Murdoch wrote: >> >> On 11/05/2015 9:35 AM, Tal Galili wrote: >>> Hi Duncan, >>> Thank you for the clarification. :) >>> >>> I ended up removing these files from being scanned in the updated version

Re: [Rd] Wrongly checked MD5 checksums in R 3.2.0's windows binary

2015-05-11 Thread peter dalgaard
> On 11 May 2015, at 15:53 , Duncan Murdoch wrote: > > On 11/05/2015 9:35 AM, Tal Galili wrote: >> Hi Duncan, >> Thank you for the clarification. :) >> >> I ended up removing these files from being scanned in the updated version of >> installr. I would rather focus on supporting an MD5 scan th

Re: [Rd] Wrongly checked MD5 checksums in R 3.2.0's windows binary

2015-05-11 Thread Duncan Murdoch
On 11/05/2015 9:35 AM, Tal Galili wrote: Hi Duncan, Thank you for the clarification. :) I ended up removing these files from being scanned in the updated version of installr. I would rather focus on supporting an MD5 scan that is based on what is listed in MD5 file itself (ignoring exceptions

[Rd] Windows environmental variables

2015-05-11 Thread Simon Byrne
Hi, I recently had some difficulty getting an embedded R session running on Windows, due to the way that R Sys.getenv works, which I would consider a bug. Even if you do not agree, then you may still want to document it for future users who might be bitten. As outlined in R-exts (ยง8.2.2): http://

Re: [Rd] Wrongly checked MD5 checksums in R 3.2.0's windows binary

2015-05-11 Thread Tal Galili
Hi Duncan, Thank you for the clarification. :) I ended up removing these files from being scanned in the updated version of installr. I would rather focus on supporting an MD5 scan that is based on what is listed in MD5 file itself (ignoring exceptions that are not clearly stated in the file).

Re: [Rd] Wrongly checked MD5 checksums in R 3.2.0's windows binary

2015-05-11 Thread Duncan Murdoch
On 11/05/2015 8:35 AM, Tal Galili wrote: Thank you Duncan, Peter and Martin for the responses. Just to mention that the code is based on tools::md5sum, and the issue can be reproduced (in Windows) using: if(!require(installr)) install.packages("installr") installr::checkMD5sums2(dir=R.home())

Re: [Rd] Wrongly checked MD5 checksums in R 3.2.0's windows binary

2015-05-11 Thread Tal Galili
Thank you Duncan, Peter and Martin for the responses. Just to mention that the code is based on tools::md5sum, and the issue can be reproduced (in Windows) using: if(!require(installr)) install.packages("installr") installr::checkMD5sums2(dir=R.home()) With regards, Tal [[alternative H

Re: [Rd] Wrongly checked MD5 checksums in R 3.2.0's windows binary

2015-05-11 Thread Duncan Murdoch
On 11/05/2015 4:31 AM, peter dalgaard wrote: > > On 11 May 2015, at 09:53 , Martin Maechler > wrote: > >>> Tal Galili >>>on Sun, 10 May 2015 23:13:09 +0300 writes: >> >>> Dear R-devel members, Several R user recently reported >>> (w

Re: [Rd] Wrongly checked MD5 checksums in R 3.2.0's windows binary

2015-05-11 Thread peter dalgaard
On 11 May 2015, at 09:53 , Martin Maechler wrote: >> Tal Galili >>on Sun, 10 May 2015 23:13:09 +0300 writes: > >> Dear R-devel members, Several R user recently reported >> (while >> using the installr >>

Re: [Rd] Wrongly checked MD5 checksums in R 3.2.0's windows binary

2015-05-11 Thread Martin Maechler
> Tal Galili > on Sun, 10 May 2015 23:13:09 +0300 writes: > Dear R-devel members, Several R user recently reported > (while > using the installr > package) > that whe