Re: [Rd] Speeding up R (was Using multicores in R)

2012-12-04 Thread Prof J C Nash (U30A)
For info, I put a little study I did about the byte code compiler and other speedup approaches (but not multicore) on the Rwiki at http://rwiki.sciviews.org/doku.php?id=tips:rqcasestudy which looks at a specific problem, so may not be relevant to everyone. However, one of my reasons for doing i

[Rd] SUGGESTION: Add get/setCores() to 'parallel' (and command line option --max-cores)

2012-12-04 Thread Henrik Bengtsson
In the 'parallel' package there is detectCores(), which tries its best to infer the number of cores on the current machine. This is useful if you wish to utilize the *maximum* number of cores on the machine. Several are using this to set the number of cores when parallelizing, sometimes also hardc

[Rd] inconsistencies between ?class and ?UseMethod

2012-12-04 Thread Hervé Pagès
Hi, The 2 man pages give inconsistent description of class(): Found in ?class: If the object does not have a class attribute, it has an implicit class, ‘"matrix"’, ‘"array"’ or the result of ‘mode(x)’ (except that integer vectors have implicit class ‘"integer"’). Found in ?UseMe

Re: [Rd] SUGGESTION: Add get/setCores() to 'parallel' (and command line option --max-cores)

2012-12-04 Thread Simon Urbanek
A somewhat simplistic answer is that we already have that with the "mc.cores" option. In multicore the default was to use all cores (without the need to use detectCores) and yet you could reduce the number as you want with mc.cores. This is similar to what you are talking about but it's not a su

[Rd] RInside, rcpp compilation problem

2012-12-04 Thread Jeff Goode
I have spent some hours browsing the RInside and rcpp documentation, lots of it; but ... as a programmer of C++ since 1990, on both Windows and Unix ... ( Solaris and Ubuntu, and Mandrake/Mandrivo Linux); I see a minor problem .. Where is the rcpp.h header file?? The below code fails t

Re: [Rd] SUGGESTION: Add get/setCores() to 'parallel' (and command line option --max-cores)

2012-12-04 Thread Henrik Bengtsson
On Tue, Dec 4, 2012 at 5:25 PM, Simon Urbanek wrote: > A somewhat simplistic answer is that we already have that with the "mc.cores" > option. In multicore the default was to use all cores (without the need to > use detectCores) and yet you could reduce the number as you want with > mc.cores. T

Re: [Rd] RInside, rcpp compilation problem

2012-12-04 Thread Simon Urbanek
On Dec 4, 2012, at 10:00 PM, Jeff Goode wrote: > I have spent some hours browsing the RInside and rcpp documentation, lots of > it; but ... as a programmer of C++ since 1990, on both Windows and Unix ... ( > Solaris and Ubuntu, and Mandrake/Mandrivo Linux); I see a minor problem > .. Wher

Re: [Rd] RInside, rcpp compilation problem

2012-12-04 Thread Dirk Eddelbuettel
On 4 December 2012 at 22:47, Simon Urbanek wrote: | | On Dec 4, 2012, at 10:00 PM, Jeff Goode wrote: | | > I have spent some hours browsing the RInside and rcpp documentation, lots of it; but ... as a programmer of C++ since 1990, on both Windows and Unix ... ( Solaris and Ubuntu, and Mandrake

[Rd] NAMESPACE problem: import(zoo) but 'zoo' could not be loaded

2012-12-04 Thread Spencer Graves
Hello: I'm having problems creating a real NAMESPACE to replace the pro forma one in the fda package on R-Forge. "R CMD check" complains, "Error: package 'zoo' could not be loaded ... there is no package called 'zoo'"; see below. I get this both with and without "import(zoo)" in NAM