Re: [Rd] grDevice in R HEAD been broken for 6 weeks.

2015-09-29 Thread Paul Murrell
Hi This should be fixed in r-devel r69442. Thanks very much for reporting the problem! Paul On 26/09/15 19:39, Hin-Tak Leung wrote: geDevice has been failing check for 6 weeks now with --enable-strict-barrier , bisected to:

Re: [Rd] making object.size() more meaningful on environments?

2015-09-29 Thread Hervé Pagès
On 09/29/2015 03:18 PM, Hervé Pagès wrote: Hi Gabe, On 09/29/2015 02:51 PM, Gabriel Becker wrote: Herve, The problem then would be that for A a refClass whose fields take up N bytes (in the sense that you mean), if we do B <- A A and B would look like the BOTH take up N bytes, for a total of

Re: [Rd] making object.size() more meaningful on environments?

2015-09-29 Thread Hervé Pagès
Hi Gabe, On 09/29/2015 02:51 PM, Gabriel Becker wrote: Herve, The problem then would be that for A a refClass whose fields take up N bytes (in the sense that you mean), if we do B <- A A and B would look like the BOTH take up N bytes, for a total of 2N, whereas AFAIK R would only be using ~ N

Re: [Rd] making object.size() more meaningful on environments?

2015-09-29 Thread Hadley Wickham
You might like to try pryr::object_size() : ``` r library(pryr) env1 <- new.env() object_size(env1) #> 328 B env2 <- new.env(hash = TRUE, size = 7500L) object_size(env2) #> 600 MB env3 <- list2env(list(a = runif(2.5e+07), L = LETTERS)) object_size(env3) #> 200 MB ``` It handles the issue that

Re: [Rd] making object.size() more meaningful on environments?

2015-09-29 Thread Gabriel Becker
Herve, The problem then would be that for A a refClass whose fields take up N bytes (in the sense that you mean), if we do B <- A A and B would look like the BOTH take up N bytes, for a total of 2N, whereas AFAIK R would only be using ~ N + 2*56 bytes, right? ~G On Tue, Sep 29, 2015 at 2:42

[Rd] making object.size() more meaningful on environments?

2015-09-29 Thread Hervé Pagès
Hi, Currently object.size() is not very useful on environments as it always returns 56 bytes, no matter how big the environment is: env1 <- new.env() object.size(env1) # 56 bytes env2 <- new.env(hash=TRUE, size=7500L) object.size(env2) # 56 bytes env3 <- list2env(list(a=runif(2

Re: [Rd] issues with dev.new avoiding RStudio plot device on unix?

2015-09-29 Thread Duncan Murdoch
On 29/09/2015 2:00 PM, Skye Bender-deMoll wrote: > > > On 09/26/2015 03:22 AM, Duncan Murdoch wrote: >> On 26/09/2015 1:42 AM, Skye Bender-deMoll wrote: >>> Sorry, should have given more background. x11 works fine on all my >>> systems when called by x11(). I'm the maintainer of a package that

Re: [Rd] Build R with MKL and ICC

2015-09-29 Thread Nathan Kurz
Hi Arnaud -- I'm glad it's working for you. I'm not sure I understand your final answer. Are you saying that the version I posted worked for you as given, or that you had to remove some of the other options? Perhaps you could post the full final recipe in a way that others can copy and paste if

Re: [Rd] issues with dev.new avoiding RStudio plot device on unix?

2015-09-29 Thread Skye Bender-deMoll
On 09/26/2015 03:22 AM, Duncan Murdoch wrote: On 26/09/2015 1:42 AM, Skye Bender-deMoll wrote: Sorry, should have given more background. x11 works fine on all my systems when called by x11(). I'm the maintainer of a package that uses the animation library, which has performance issues when u

Re: [Rd] Build R with MKL and ICC

2015-09-29 Thread arnaud gaboury
On Wed, Sep 9, 2015 at 11:26 PM, Nathan Kurz wrote: > > As a short and simple approach, I just compiled the current R release > on Ubuntu with ICC and MKL using just this: > > $ tar -xzf R-3.2.2.tar.gz > $ cd R-3.2.2 > $ CC=icc CXX=icpc AR=xiar LD=xild CFLAGS="-g -O3 -xHost" CXXFLAGS="-g > -O3 -xH

Re: [Rd] issues with dev.new avoiding RStudio plot device on unix?

2015-09-29 Thread Duncan Murdoch
On 26/09/2015 1:42 AM, Skye Bender-deMoll wrote: > Sorry, should have given more background. x11 works fine on all my > systems when called by x11(). I'm the maintainer of a package that uses > the animation library, which has performance issues when used with the > RStudio plot device. But i

[Rd] Error possibly related with environments/namespace

2015-09-29 Thread Frederico Mestre
Hello all, I've got a problem with a function in a R package I've developed (MetaLandSim). One of the outputs of my function is the plotting of four images (combining a graph and a map). This plotting is made in a graphical device, with the graph in one side and the map in the other. My function