[Rd] Using a different compiler when creating a package on Windows

2019-03-02 Thread Erin Hodgess
Hello! I am updating to the R-devel version as of 2/28 and recompiling with OpenBLAS. I got that to compile nicely. I am now updating a package that uses the OpenBLAS and the PGI compiler, which has changed too. I just changed the path names in Makevars. Here is the Makevars file. FC= d:/PGI

Re: [Rd] stopifnot

2019-03-02 Thread Suharto Anggono Suharto Anggono via R-devel
Instead of if(!is.null(names(cl))) names(cl) <- NULL , just names(cl) <- NULL looks simpler and the memory usage and speed is not bad in my little experiment. Subject: Re: [Rd] stopifnot To: r-devel@r-project.org Date: Saturday, 2 March, 2019, 3:28

Re: [Rd] stopifnot

2019-03-02 Thread Suharto Anggono Suharto Anggono via R-devel
A private reply by Martin made me realize that I was wrong about stopifnot(exprs=TRUE) . It actually works fine. I apologize. What I tried and was failed was stopifnot(exprs=T) . Error in exprs[[1]] : object of type 'symbol' is not subsettable The shortcut assert <- function(exprs) stopifnot(exprs