loadNamespace(name) 错误:没有名为“Rcpp"的包 [英] Error in loadNamespace(name) : there is no package called 'Rcpp'

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

问题描述

我正在尝试将 RInside 嵌入到我在 win7 64 位系统上的应用程序中,但是当我初始化 RInside 时:

I am trying to embed RInside to my application on win7 64-bit system but when I initialize an RInside:

Rin = new RInside(argc, argv);

出现以下消息:

loadNamespace(name) 中的错误:没有名为Rcpp"的包

Error in loadNamespace(name) : there is no package called 'Rcpp'

此错误仅在 Windows 中发生.

This error only occurs with Windows.

推荐答案

我认为当你的 .libPaths() 不同时你会遇到这个问题——换句话说,运行 .libPaths() 函数来查看 R 存储的路径供其使用.然后检查 RInside 的安装位置,并确保 Rcpp 也安装在那里.这是一个设置问题.

I think you get that issue when your .libPaths() differ--in other words run the .libPaths() function to see the paths stored by R for its use. Then check where RInside is installed, and make sure Rcpp is installed there too. It is a setup issue.

换句话说,如果您在基本 R 库所在的位置安装了 RcppRInside,它应该可以工作.否则,您必须告诉(嵌入式)R 会话有关其他位置的信息(并且在它开始之前).

In other words, it should work if you have Rcpp and RInside installed where the basic R libraries are. Otherwise you have to tell the (embedded) R session about the other location (and before it starts).

列表中有更多的 Windows 用户,因此您可以尝试在 rcpp-devel 上询问.

There are more Windows users on the list, so you could try asking on rcpp-devel.

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

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