这在lme4中是什么意思:包"Rcpp"未提供功能"dataptr" [英] What does this mean in lme4: function 'dataptr' not provided by package 'Rcpp'
问题描述
我正在尝试使用lme4进行LMM,并弹出此消息:
initializePtr()中的错误: 软件包"Rcpp"未提供功能"dataptr"
我该怎么办?
过一会儿,我明白了.
1)解决方法是重新安装最新版本的Rcpp.
2)如果您不使用lme4,但是与dyn.load()结合使用时也遇到此问题(软件包'Rcpp'未提供功能'dataptr'"),可能值得注意的是不要忘记包括
库(Rcpp)
或
require(Rcpp)
在您的代码之前
dyn.load("your_shared_lib.so")
来源: building_shared_libs_with_Rcpp >
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 I do?
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
这篇关于这在lme4中是什么意思:包"Rcpp"未提供功能"dataptr"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!