What does this mean in lme4: function 'dataptr' not provided by package 'Rcpp'

后端 未结 1 502
生来不讨喜
生来不讨喜 2021-01-14 01:38

I\'m trying to do LMM using lme4, and this message pops up:

Error in initializePtr() : function \'dataptr\' not provided by package \'Rcpp\'

What should

1条回答
  •  醉梦人生
    2021-01-14 02:08

    After a while, I got it.

    1) Reinstall the latest version of Rcpp is the solution.

    2) If you are not using lme4, but you also have this problem ("function 'dataptr' not provided by package 'Rcpp'") in combination with dyn.load(), it might be worth noting do not forget to include

    library(Rcpp)

    or

    require(Rcpp)

    on your code before

    dyn.load("your_shared_lib.so")

    Source: building_shared_libs_with_Rcpp

    0 讨论(0)
提交回复
热议问题