Skip to content

Conversation

krlmlr
Copy link
Contributor

@krlmlr krlmlr commented Feb 14, 2018

Closes #795.

@eddelbuettel eddelbuettel merged commit 72f98ea into RcppCore:master Feb 14, 2018
@eddelbuettel
Copy link
Member

This may become my favourite pull request ever:

R> library(Rcpp)
R> cppFunction("double plusTwo(double x) { return x+2; }")
R> plusTwo
function (x) 
.Call(<pointer: 0x7f692cdf0cb0>, x)
R> plusTwo(40)
[1] 42
R> 

We all just looked at each other assuming the other knew why on earth we used .Primitive() in here too.

@eddelbuettel
Copy link
Member

Well okay, maybe not as famous as the one by @jjallaire that got us Attributes in the first place ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants