[Rd] R CMD check for the R code from vignettes

2014-05-29 Thread Yihui Xie
Hi, Recently I saw a couple of cases in which the package vignettes were somewhat complicated so that Stangle() (or knitr::purl() or other tangling functions) can fail to produce the exact R code that is executed by the weaving function Sweave() (or knitr::knit(), ...). For example, this is a vali

Re: [Rd] mcmapply Core Usage

2014-05-29 Thread Simon Urbanek
On May 29, 2014, at 8:04 PM, Henric Winell wrote: > Simon Urbanek skrev 2014-05-29 15:06: >> Dario, >> >> yes, that is a bug, now fixed. > > Thanks for fixing it. > > This problem was independently reported some time ago > (https://bugs.r-project.org/bugzilla/show_bug.cgi?id=15016) and I beli

Re: [Rd] mcmapply Core Usage

2014-05-29 Thread Henric Winell
Simon Urbanek skrev 2014-05-29 15:06: Dario, yes, that is a bug, now fixed. Thanks for fixing it. This problem was independently reported some time ago (https://bugs.r-project.org/bugzilla/show_bug.cgi?id=15016) and I believe that it can now be closed. Henric Cheers, Simon On May 29

[Rd] A bug in princomp(), perhaps?

2014-05-29 Thread Ravi Varadhan
Hi, It may be my misunderstanding, but it seems that the "na.action" in the princomp() function for principal components analysis does not work. Please see this simple example: u <- matrix(rnorm(75), ncol=1) v <- matrix(rnorm(20), ncol=1) x <- u%*%t(v) + matrix(rnorm(20*75),ncol=20) x[1,1] <- N

Re: [Rd] mcmapply Core Usage

2014-05-29 Thread Simon Urbanek
Dario, yes, that is a bug, now fixed. Cheers, Simon On May 29, 2014, at 2:00 AM, Dario Strbenac wrote: > Hello, > > I have a minimal example that shows a problem I'm having with parallel > processing. > > library(parallel) > mcmapply(function(x, y) > { > print("Running") > Sys.sleep(10)