Re: [Rd] R-devel no longer supports Ubuntu 14.04 LTS (insufficient PCRE version)

2015-11-23 Thread Dirk Eddelbuettel
Sebastian, Paul, Ubuntu 14.04 builds (for Linux 32 and 64 bit, ie i386 and amd64) of the (most current) pcre package (ie 8.35-7) for Ubuntu are now in my PPA at https://launchpad.net/~edd/+archive/ubuntu/misc/+packages These should work. You can add this PPA as I do in some Travis runs via

[Rd] Custom C finalizers for .Call

2015-11-23 Thread Jeroen Ooms
WRE explains that R_alloc() can be used to allocate memory which automatically gets released by R at the end of a .C, .Call or .External, even in the case of an error or interruption. This is a really great feature to prevent memory leaks. I was wondering if there is a way to extend this mechanism

Re: [Rd] compile question

2015-11-23 Thread peter dalgaard
> On 23 Nov 2015, at 22:30 , aixtools wrote: > >> >> ./configure --enable-maintainer-mode ... Two things here - possibly irrelevant, but I'd avoid building in the source directory. (mkdir ../BUILD ; cd ../BUILD; ../R/configure) - don't turn on mantainer mode. You are not a maintainer, and i

Re: [Rd] compile question

2015-11-23 Thread Paul Grosu
Hi Michael, I experienced the same thing in the past. After you get the R-3.2.2.tar.gz and uncompress it, enter the R-3.2.2 directory and run the ./configure and make from there, rather than a different one. One other thing, you probably already did this, but just in case you might want to doubl

Re: [Rd] compile question

2015-11-23 Thread aixtools
On 2015-11-23 18:52, aixtools wrote: Dear all, Starting all over again with R-devel of 22-11-2015. After getting the dependancies (minimal graphics initially) I have been able to come this far - with a 64-bit build on AIX. This is my configure call: #!/usr/bin/ksh # my_config_test . /dat

Re: [Rd] MKL Acceleration encouraging; need adjust package builds?

2015-11-23 Thread Dirk Eddelbuettel
We said it before, but it bears repeating: BLAS is an interface. So unless you use on a static library build, these library can be switch after compilation and at essentially any point in time. My (unfinished) package gcbd shows how in its simple and vignette by comparing a number of BLAS implem

[Rd] compile question

2015-11-23 Thread aixtools
Dear all, Starting all over again with R-devel of 22-11-2015. After getting the dependancies (minimal graphics initially) I have been able to come this far - with a 64-bit build on AIX. root@x072:[/data/prj/cran/64/R-devel]make make[1]: Entering directory '/data/prj/cran/64/R-devel/m4' make[1

Re: [Rd] MKL Acceleration encouraging; need adjust package builds?

2015-11-23 Thread David Smith
Hi Paul, We've been through this process ourselves for the Revolution R Open project. There are a number of pitfalls to avoid, but you can take a look at how we achieved it in the build scripts at: https://github.com/RevolutionAnalytics/RRO There are also some very useful notes in the R Instal

[Rd] MKL Acceleration encouraging; need adjust package builds?

2015-11-23 Thread Paul Johnson
Dear R-devel: The Cluster administrators at KU got enthusiastic about testing R-3.2.2 with Intel MKL when I asked for some BLAS integration. Below I forward a performance report, which is encouraging, and thought you would like to know the numbers. Appears to my untrained eye there are some extr

Re: [Rd] capturing warnings using capture.output

2015-11-23 Thread William Dunlap
When options("warn") is 0, the default, the warning is not printed until capture.output is done. Use warn=1 to capture the warnings as messages: > options(warn=0) > txt0 <- capture.output({message("A message"); warning("A warning")}, > type="message") Warning message: In eval(expr, envir, enclos

[Rd] capturing warnings using capture.output

2015-11-23 Thread Richard Cotton
>From the Details section of ?capture.output: Messages sent to stderr() (including those from message, warning and stop) are captured by type = "message". Note that this can be "unsafe" and should only be used with care. Capturing messages works as expected: capture.output(message("!!!"), type =

Re: [Rd] Best way to implement optional functions?

2015-11-23 Thread Richard Cotton
Yes, you do need at least a token about of documentation in both packages. I keep full documentation in the package where they originate, and minimal documentation in the rexporting package. The roxygen code in the reexporting package looks like this: #' Some function #' #' See \code{\link[origi