Re: [Rd] Set the number of threads using openmp with .Fortran?

2019-02-02 Thread Ignacio Martinez
I got this to work on Linux but it is not working on Windows. *My understanding is that this should also work on windows, is that correct?* If so, what should I do? differently? To get it to work on Linux, I modified my R script as follows: #' OpenMP Hello World #' #' @param nthreads The number o

Re: [Rd] Runnable R packages

2019-02-02 Thread Abs Spurdle
Creating an .exe file isn't necessarily difficult. The main problems are that you have to write and compile the C (or other) files. Otherwise, the complexity depends on the level of Inter Process Communication that's required. Simply starting R with some initial conditions, is easy. Even if you wa

Re: [Rd] nlminb with constraints failing on some platforms

2019-02-02 Thread William Dunlap via R-devel
Microsoft R Open 3.4.2 The enhanced R distribution from Microsoft Microsoft packages Copyright (C) 2017 Microsoft Corporation Using the Intel MKL for parallel mathematical computing (using 12 cores). Default CRAN mirror snapshot taken on 2017-10-15. See: https://mran.microsoft.com/. > f <- funct

Re: [Rd] Runnable R packages

2019-02-02 Thread Ben Bolker
remotes has fewer dependencies. I believe that the current version of devtools just re-exports install_github etc. from the remotes package. On 2019-02-02 11:31 a.m., David Lindelof wrote: > I see some value in Duncan’s proposal to implement this as an extra package > instead of a change to b

Re: [Rd] nlminb with constraints failing on some platforms

2019-02-02 Thread Oliver Dechant
Hello, > sessionInfo() R version 3.5.2 (2018-12-20) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux 9 (stretch) Matrix products: default BLAS/LAPACK: /opt/intel/compilers_and_libraries_2019.1.144/linux/mkl/lib/intel64_lin/libmkl_rt.so locale: [1] LC_CTYPE=en_CA.UTF-8

Re: [Rd] Set the number of threads using openmp with .Fortran?

2019-02-02 Thread Ignacio Martinez
I was able to make some progress by using this as a reference. Now: *This is my makevars:* # Compiler flags # PKG_FCFLAGS = $(SHLIB_OPENMP_FFLAGS) PKG_LIBS = $(SHLIB_OPENMP_CFLAGS) # Phony target for R's build s

Re: [Rd] Runnable R packages

2019-02-02 Thread David Lindelof
I see some value in Duncan’s proposal to implement this as an extra package instead of a change to base R, if only to see if the idea has legs. I’m minded to do so myself using your suggestion, but is there a particular reason why you recommend using the remotes package instead of devtools? The lat

Re: [Rd] Runnable R packages

2019-02-02 Thread Duncan Murdoch
On 02/02/2019 8:27 a.m., Barry Rowlingson wrote: I don't think anyone denies that you *could* make an EXE to do all that. The discussion is on *how easy* it should be to create a single file that contains an initial "main" function plus a set of bundled code (potentially as a package) and which w

Re: [Rd] Runnable R packages

2019-02-02 Thread Barry Rowlingson
I don't think anyone denies that you *could* make an EXE to do all that. The discussion is on *how easy* it should be to create a single file that contains an initial "main" function plus a set of bundled code (potentially as a package) and which when run will install its package code (which is con

Re: [Rd] nlminb with constraints failing on some platforms

2019-02-02 Thread Stefan Evert
Also no error on MacOS 10.13.6, R 3.5.1 with system-supplied VecLib BLAS. > > f <- function(x) sum( log(diff(x)^2+.01) + (x[1]-1)^2 ) > > opt <- nlminb(rep(0, 10), f, lower=-1, upper=3) > > str(opt) > List of 6 > $ par: num [1:10] 1 1 1 1 1 ... > $ objective : num -41.4 > $ convergence