Trying an example from http://gallery.rcpp.org/articles/passing-cpp-function-pointers-rcppxptrutils/ I found what seems to be a typo for me:
checkXPtr(ptr, "int", c("int", "double"))
prints an error having the following text:
"Wrong return type 'double', should be 'int'"
where "double" and "int" are inverted. The right return type is "double" so it should read "Wrong return type 'int', should be 'double'"
Trying an example from http://gallery.rcpp.org/articles/passing-cpp-function-pointers-rcppxptrutils/ I found what seems to be a typo for me:
checkXPtr(ptr, "int", c("int", "double"))prints an error having the following text:
"Wrong return type 'double', should be 'int'"
where "double" and "int" are inverted. The right return type is "double" so it should read "Wrong return type 'int', should be 'double'"