[Rd] UTC time zone on Windows

2014-08-06 Thread Kirill Müller
Hi I'm having trouble running R CMD build and check with UTC time zone setting in Windows Server 2012. I can't seem to get rid of the following warning: unable to identify current timezone 'C': please set environment variable 'TZ' However, setting TZ to either "Europe/London" or "GMT Stan

Re: [Rd] R process (and forked children via system2) are limited to 1 core?

2014-08-06 Thread Tom Kraljevic
Nathaniel, that did the trick. Thanks so much for your help. Tom $ export OPENBLAS_MAIN_FREE=1 $ R $ cat /proc/1538/status | grep Cpus_allowed Cpus_allowed: Cpus_allowed_list: 0-31 On Aug 6, 2014, at 2:41 PM, Nathaniel Smith wrote: > On Wed, Aug 6, 2014 at 10:31 PM, Tom K

[Rd] R process (and forked children via system2) are limited to 1 core?

2014-08-06 Thread Tom Kraljevic
Hi, (Using R 3.1.1 on Ubuntu 12.04.4 LTS) What is the recommended way for R to fork a (non-R) process that is not CPU limited? Currently I am using R’s system2() call, and this is inheriting the environment of the R process. I notice that (at least on Linux) when I am poking around /proc t

Re: [Rd] R process (and forked children via system2) are limited to 1 core?

2014-08-06 Thread Nathaniel Smith
On Wed, Aug 6, 2014 at 10:31 PM, Tom Kraljevic wrote: > > Hi Nathaniel, > > > > Thanks for the suggestion. > > I’m actually not really using R to do any real work. > I’m starting the R H2O package (a Java machine learning package) and > forwarding all the work to H2O. > > > > This is the list of p

Re: [Rd] R process (and forked children via system2) are limited to 1 core?

2014-08-06 Thread Tom Kraljevic
Hi Nathaniel, Thanks for the suggestion. I’m actually not really using R to do any real work. I’m starting the R H2O package (a Java machine learning package) and forwarding all the work to H2O. This is the list of packages I have in R: > search() [1] ".GlobalEnv""package:h2o"

Re: [Rd] R process (and forked children via system2) are limited to 1 core?

2014-08-06 Thread Nathaniel Smith
On Wed, Aug 6, 2014 at 6:01 AM, Tom Kraljevic wrote: > > Hi, > > > (Using R 3.1.1 on Ubuntu 12.04.4 LTS) > > > What is the recommended way for R to fork a (non-R) process that is not CPU > limited? > Currently I am using R's system2() call, and this is inheriting the > environment of the R proce

[Rd] R process (and forked children via system2) are limited to 1 core?

2014-08-06 Thread Tom Kraljevic
Hi, (Using R 3.1.1 on Ubuntu 12.04.4 LTS) What is the recommended way for R to fork a (non-R) process that is not CPU limited? Currently I am using R's system2() call, and this is inheriting the environment of the R process. I notice that (at least on Linux) when I am poking around /proc t

Re: [Rd] portableParalleSeeds Package violation, CRAN exception?

2014-08-06 Thread William Dunlap
You can make an environment called streamsEnv in your package by adding streamsEnv <- new.env() to one of your R/*.R files. (its parent environment will be namespace:yourPackage) and your functions can assign things to this environment instead of to .GlobalEnv. Bill Dunlap TIBCO Software wdunla

Re: [Rd] portableParalleSeeds Package violation, CRAN exception?

2014-08-06 Thread Gábor Csárdi
Why not place them in the package environment? Gabor On Wed, Aug 6, 2014 at 2:10 PM, Paul Johnson wrote: > I'm writing to ask for a policy exception, or advice on how to make > this package CRAN allowable. > > http://rweb.quant.ku.edu/kran/src/contrib/portableParallelSeeds_0.9.tar.gz > > Yesterda

Re: [Rd] More than one package document with the same name

2014-08-06 Thread Dan Tenenbaum
- Original Message - > From: "John McKown" > To: "Jerry Davison" > Cc: r-devel@r-project.org > Sent: Tuesday, August 5, 2014 5:10:28 PM > Subject: Re: [Rd] More than one package document with the same name > > On Tue, Aug 5, 2014 at 5:47 PM, Davison, Jerry > wrote: > > Hi, > > > > I s

[Rd] portableParalleSeeds Package violation, CRAN exception?

2014-08-06 Thread Paul Johnson
I'm writing to ask for a policy exception, or advice on how to make this package CRAN allowable. http://rweb.quant.ku.edu/kran/src/contrib/portableParallelSeeds_0.9.tar.gz Yesterday I tried to submit a package on CRAN and Dr Ripley pointed out that I had not understood the instructions about pack

Re: [Rd] Can't use custom package on windows 64-bit

2014-08-06 Thread Prof Brian Ripley
On 06/08/2014 14:47, Evan Farrell wrote: I've been developing a package to use S3 bucket on AWS by using libs3 code. I have two problems. The first is, by standard, it will attempt to install i386 and x64 if I don't have a configure.win. Or if you use --force-biarch or --merge-multiarch: see

Re: [Rd] Subscripting Matrices

2014-08-06 Thread Marc Schwartz
On Aug 6, 2014, at 10:07 AM, Terrence Ireland wrote: > There seems to be a result type difference when subscripting a 6 x 1 matrix > as compared to a 3 x 2 matrix that is caused by the ncol = 1 compared to ncol > > 1. > > > ThinMatrix <- matrix(1:6,ncol=1) > > ThinMatrix > [,1] > [1,]1

Re: [Rd] Subscripting Matrices

2014-08-06 Thread Gábor Csárdi
You want `drop=FALSE`: > dim(ThinMatrix[TRUE, , drop=FALSE]) [1] 6 1 >From ?"[": drop: For matrices and arrays. If ‘TRUE’ the result is coerced to the lowest possible dimension (see the examples). This only works for extracting elements, not for the replacement. See

[Rd] Subscripting Matrices

2014-08-06 Thread Terrence Ireland
There seems to be a result type difference when subscripting a 6 x 1 matrix as compared to a 3 x 2 matrix that is caused by the ncol = 1 compared to ncol > 1. > ThinMatrix <- matrix(1:6,ncol=1) > ThinMatrix [,1] [1,]1 [2,]2 [3,]3 [4,]4 [5,]5 [6,]6 > FatMatrix <- mat

Re: [Rd] Can't use custom package on windows 64-bit

2014-08-06 Thread Dirk Eddelbuettel
On 6 August 2014 at 09:47, Evan Farrell wrote: | I've been developing a package to use S3 bucket on AWS by using libs3 code. | I have two problems. The first is, by standard, it will attempt to | install i386 and x64 if I don't have a configure.win. | | The problem with this is that while every

[Rd] Can't use custom package on windows 64-bit

2014-08-06 Thread Evan Farrell
I've been developing a package to use S3 bucket on AWS by using libs3 code. I have two problems. The first is, by standard, it will attempt to install i386 and x64 if I don't have a configure.win. The problem with this is that while everything appears to compile correctly, I get this error when