Re: [Rd] Cannot override default -O3 flag on Winodws, dll does not have symbols

2013-01-09 Thread Prof Brian Ripley
On 10/01/2013 02:58, rtaylor wrote: In trying to compile a package with c code using Rtools, -O3 is added by default. This comes from Makeconf? Compiler flags (CFLAGS="-O0 -g" ) set in src/Makevars.win or src/Makevars appear before this. nm pkg.dll reveals no symbols! That is not a function o

Re: [Rd] Cannot override default -O3 flag on Winodws, dll does not have symbols

2013-01-09 Thread Dirk Eddelbuettel
On 9 January 2013 at 18:58, rtaylor wrote: | In trying to compile a package with c code using Rtools, -O3 is added by | default. This comes from Makeconf? Compiler flags (CFLAGS="-O0 -g" ) set in | src/Makevars.win or src/Makevars appear before this. | | nm pkg.dll reveals no symbols! | | How

[Rd] Cannot override default -O3 flag on Winodws, dll does not have symbols

2013-01-09 Thread rtaylor
In trying to compile a package with c code using Rtools, -O3 is added by default. This comes from Makeconf? Compiler flags (CFLAGS="-O0 -g" ) set in src/Makevars.win or src/Makevars appear before this. nm pkg.dll reveals no symbols! How can I compile a Windows package with "-O2 -g"? Thanks, R

Re: [Rd] Bug in list subset assignment due to NAMED optimization

2013-01-09 Thread luke-tierney
On Tue, 8 Jan 2013, Justin Talbot wrote: In R version 2.15.2 (2012-10-26) i386-apple-darwin9.8.0/i386 (32-bit) I get the following: a <- list(1) (a[[1]] <- a) [[1]] [[1]][[1]] [1] 1 but a <- list(1) b <- a (a[[1]] <- a) [[1]] [1] 1 And similarly: a <- list(x=1) (a$x <- a) $x $x$x [1]