[Rd] enableJIT(3) with Primitives

R. Michael Weylandt michael.weylandt at gmail.com
Mon Mar 19 21:00:39 CET 2012


I'm not sure if this is a bug or expected behavior, but I don't see
anything in the documentation that explains it, so I thought I'd
mention it:

~ michaelweylandt$ R -q --vanilla

library(compiler)
enableJIT(3)

`+` # Throws an error
`+` # Throws a warning
`+` # Prints the primitive as expected

sessionInfo()

R version 2.14.1 (2011-12-22)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] compiler  stats     graphics  grDevices utils     datasets  methods
[8] base

It seems to be independent of which primitives are used and I get the
same behavior with r58785 built locally.

Michael



More information about the R-devel mailing list