Skip to content

[Rcpp-devel] dataptr not in Rcpp

5 messages · Kevin Ushey, Dirk Eddelbuettel, Randall MacIntosh

#
I am trying to run the TAM module in R 2.15.3 so it can be called from within SPSS.
I have Rcpp 0.10.4 installed, but get an error message:

  function 'dataptr' not provided by package 'Rcpp'.
  
  TAM runs under R 3.1.1 with Rcpp 0.11.5, but I would like to run it under the
  earlier release, as that is what is required to use it within SPSS.
  Do you have any suggestions?

Thank you.
#
Hi Randall,

`dataptr` just wraps over the R `DATAPTR` macro / function, so you
could just call that instead (although you might need to manually cast
the pointer type to whatever you need)

Kevin
On Sun, May 10, 2015 at 8:39 PM, Randall MacIntosh <rmacintosh at csus.edu> wrote:
#
If I google "function 'dataptr' not provided by package 'Rcpp'" I get 1060
hits -- as this used to be one of two "tells" when Rcpp 0.10.* switched to
Rcpp 0.11.* and the 'no longer linking with libRcpp.*' required a different
instantiation.

Now, the package you want (TAM) is fine on CRAN, and as you say on R 3.1.1
with Rcpp 0.11.5 -- so when you say

  "but I would like to run it under the earlier release, as that is what is
  required to use it within SPSS."

"all" you have to do is to consistently build the older releases.  Ie for the
R mandated by SPSS pick with Rcpp that was released then, build it and the
install the TAM that was current then.

One you have that come back, and we can try to helo you "backport" the
current TAM to the versions of R and Rcpp you may be forced to use.

Dirk
#
Thanks for your help.

I have been able to install Rcpp 10.4 and TAM 1.0-2 under R 2.15.3 and 
run TAM.
The current version of TAM is 1.6, which is what I would like to use.
Backport ready?

I appreciate your assistance.
On 5/10/2015 8:52 PM, Dirk Eddelbuettel wrote:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150511/d74819c1/attachment.html>
#
On 11 May 2015 at 10:08, Randall MacIntosh wrote:
| Thanks for your help.
| 
| I have been able to install Rcpp 10.4 and TAM 1.0-2 under R 2.15.3 and run TAM.
| The current version of TAM is 1.6, which is what I would like to use.
| Backport ready?
| 
| I appreciate your assistance.

Unpack both TAM 1.0-2 and TAM 1.6 next to each other in temp directory and
glance hard at the two versions of the file src/Makevars.  With luck the new
one will work, without luck you may have to learn how Rcpp package build and
load and adjust yourself.  You may also rely on the TAM maintainers.

Dirk