[Rd] Web apps on a R server

2015-08-24 Thread arnaud gaboury
I want to deploy some R web apps with a clean separate of concerns: R code // applications. My choice for the R part is to use one of these two tools: - deployR[1] - OpenCPU[2] and JavaScript for web apps. OS is Fedora 22 and web server Nginx. I have been reading documentation about these two R

Re: [Rd] Build optimized R : openblas, MKL, ATLAS

2015-08-24 Thread Bjørn-Helge Mevik
arnaud gaboury writes: > - Intel MKL: this is part of Intel Parallel Studio and is a paid > software. Now, there is the MKL package distributed by > Revolutionanalytics, but I am not certain how this can be distributed > for free. Is there any kind of difference? In case of use of this > package,

Re: [Rd] Build optimized R : openblas, MKL, ATLAS

2015-08-24 Thread arnaud gaboury
On Mon, Aug 24, 2015 at 11:29 AM, Bjørn-Helge Mevik wrote: > arnaud gaboury writes: > >> - Intel MKL: this is part of Intel Parallel Studio and is a paid >> software. Now, there is the MKL package distributed by >> Revolutionanalytics, but I am not certain how this can be distributed >> for free.

Re: [Rd] Build optimized R : openblas, MKL, ATLAS

2015-08-24 Thread Dirk Eddelbuettel
On 24 August 2015 at 11:43, arnaud gaboury wrote: | On Mon, Aug 24, 2015 at 11:29 AM, Bjørn-Helge Mevik | wrote: | > arnaud gaboury writes: | > | >> - Intel MKL: this is part of Intel Parallel Studio and is a paid | >> software. Now, there is the MKL package distributed by | >> Revolutionanalyti

Re: [Rd] Build optimized R : openblas, MKL, ATLAS

2015-08-24 Thread arnaud gaboury
On Mon, Aug 24, 2015 at 1:42 PM, Dirk Eddelbuettel wrote: > > On 24 August 2015 at 11:43, arnaud gaboury wrote: > | On Mon, Aug 24, 2015 at 11:29 AM, Bjørn-Helge Mevik > | wrote: > | > arnaud gaboury writes: > | > > | >> - Intel MKL: this is part of Intel Parallel Studio and is a paid > | >> sof

Re: [Rd] Build optimized R : openblas, MKL, ATLAS

2015-08-24 Thread Dirk Eddelbuettel
On 24 August 2015 at 13:46, arnaud gaboury wrote: | On Mon, Aug 24, 2015 at 1:42 PM, Dirk Eddelbuettel wrote: | > | > You may be able to switch at will _after_ R has been built and installed. | | something like: | # update-alternatives --config | ? | Reference to this blog[0] | > | [0]http

Re: [Rd] Child thread libR.so

2015-08-24 Thread Ryan C Metzger
I did some poking around with GDB and confirmed that the advice of setting R_CStackLimit after init, which is echoed in the "threading issues" section of the R-exts help document, isn't entirely useful because init apparently loads the main package which trips over the broken stack checking. Stack

[Rd] OpenMP on Windows reset FPU mode, disabling long double

2015-08-24 Thread Radford Neal
Another comment resulting from my testing of pqR on Windows... With the Rtools implementation of OpenMP, threads started with an OpenMP "parallel" construct have the state of the FPU reset so that "long double" arithmetic is actually done only to "double" precision. The problem can be seen with t

Re: [Rd] Problem with psignal.c for Windows builds

2015-08-24 Thread Radford Neal
One thing I forgot in my previous message about problems with psignal.c on Rtools for Windows... One also needs to change src/gnuwin32/fixed/h/psignal.h At a minimum, one needs the following changes: @@ -122,8 +129,8 @@ typedef struct /* Prototype stuff

Re: [Rd] sprintf error: "only 100 arguments allowed"

2015-08-24 Thread Hervé Pagès
Hi Martin, Don't know the reason for this limitation. Here is a possible workaound: ## Work around the "only 100 arguments are allowed" error ## in base::sprintf(). Only works with 'fmt' of length 1. sprintf2 <- function(fmt, ...) { MAX_NVAL <- 99L args <- list(...) if (length(args)

Re: [Rd] Child thread libR.so

2015-08-24 Thread Simon Urbanek
Ryan, if you read the piece you quoted from more carefully, you'll notice it says "Rf_initialize_R" - which is quite critical in this matter. Cheers, Simon On Aug 24, 2015, at 9:18 AM, Ryan C Metzger wrote: > I did some poking around with GDB and confirmed that the advice of > setting R_CSta

Re: [Rd] Web apps on a R server

2015-08-24 Thread Simon Urbanek
On Aug 24, 2015, at 4:28 AM, arnaud gaboury wrote: > I want to deploy some R web apps with a clean separate of concerns: R > code // applications. > > My choice for the R part is to use one of these two tools: > - deployR[1] > - OpenCPU[2] > > and JavaScript for web apps. > > OS is Fedora 22 a

Re: [Rd] Build optimized R : openblas, MKL, ATLAS

2015-08-24 Thread Bjørn-Helge Mevik
arnaud gaboury writes: > On Mon, Aug 24, 2015 at 11:29 AM, Bjørn-Helge Mevik > >> We regularly build the standard R against MKL, simply using > > Do you use proprietary Intel MKL or open source package like OpenBLAS ? As I wrote: MKL. -- Regards, Bjørn-Helge Mevik