Rcpp::compileAttributes() 错误 [英] Rcpp::compileAttributes() Error

查看:83
本文介绍了Rcpp::compileAttributes() 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译我制作的一个小包.这个包使用 Rcpp 和 RcppArmadillo.一切正常,直到我将我的 mac 更新到 Sierra(版本 10.12.5).从 Rstudio(版本 1.0.143)构建包时,我现在收到以下错误消息:

I am trying to compile a small package that I've made. This package uses Rcpp and RcppArmadillo. Everything was working well until I updated my mac to Sierra (version 10.12.5). I have now the following error message when building the package from Rstudio (version 1.0.143):

Error in Rcpp::compileAttributes() : 
Evaluation error: no native symbols were extracted.
Calls: source ... withVisible -> eval -> eval -> <Anonymous> -> .Call
Execution halted

知道这是什么以及如何修复吗?

Any idea what this is and how it can be fixed?

非常感谢!

推荐答案

尝试

tools::package_native_routine_registration_skeleton(".", character_only = FALSE)

如果您不是第一次调用,则需要使用不直观的 character_only = FALSE.

The unintuitive character_only = FALSE is necessary if you are not calling this for the first time.

我在 https://github.com/kbenoit/quanteda/从 kbenoit 复制了这个答案问题/846.当我遇到类似问题时,这对我有用.

I copied this answer from kbenoit at https://github.com/kbenoit/quanteda/issues/846. This worked for me when I had a similar problem.

这篇关于Rcpp::compileAttributes() 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆