在RInside中使用null环境是无效的错误
use of null environment is defunct error in RInside
我正在处理Ubuntu上的RInside。我已经安装了R, Rcpp和RInside。我成功地构建了我的c++代码,但是当我运行我的程序时,我得到了下一个错误:"使用null环境是无效的"在第一行RInside R(argc, argv)
更奇怪的是,在一台机器上运行得很好,但是当我试图在另一台机器上运行相同的代码时,我得到了一个错误。
在互联网上,我发现了下一个短语:"从2.4.0版本开始,使用NULL作为环境是不存在的"。因此,R、Rcpp和RInside似乎没有兼容的版本。它可以很好地与R v2.15.1和RInside v0.2.11一起工作,但不能与R v3.0.3 Rcpp v0.11 RInside v0.2.11一起工作。是否有此库的兼容版本列表?或者可能有其他原因导致这个错误。
每个时间点的CRAN版本应该是当前的。
使用RInside版本对应于同一时间的匹配Rcpp版本——即当前版本。
也进入examples/standard
目录的RInside,并说'make',这应该创建十几个工作示例。这里我只构建第一个:
edd@max:~/git/rinside/inst/examples/standard$ make rinside_sample0
g++-4.8 -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include
-I/usr/local/lib/R/site-library/RInside/include -g -O3 -Wall -pipe
-Wno-unused -pedantic -Wall rinside_sample0.cpp -L/usr/lib/R/lib
-lR -lblas -llapack -L/usr/local/lib/R/site-library/RInside/lib
-lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_sample0
edd@max:~/git/rinside/inst/examples/standard$ ./rinside_sample0
Hello, world!
edd@max:~/git/rinside/inst/examples/standard$
相关文章:
- 如何解决错误:SCIP C++中的 SCIP 阶段无效 <10>
- what(): basic_string::_M_construct 空无效错误
- C++ Linux 运行时basic_string::_M_construct null 无效错误
- 调用boost v1.58中的函数时出现模板名称使用无效错误
- 对象分配-成员函数的使用无效错误
- 从 WindowsAPI 调用 NetLocalGroupAddMembers 时,安全 ID 结构无效错误
- 为什么映射迭代器显示基本操作数无效错误
- 获取数组类型的无效错误
- 调用 vector.erase() 函数时指针操作无效错误
- C++:basic_string::_M_construct 空,对于图形 BFS 算法无效错误
- C++运行程序后给我 basic_string::_S_construct null 无效错误
- 使用 std::vector 时抽象类类型"Shape"的新表达式无效错误
- mmap 错误:分段错误/指针无效错误
- 从字符到字符编译器的转换无效错误
- 恒常性添加无效?错误:无法使用字符**初始化常量字符**
- 二进制表达式的操作数无效错误消息
- "从'文件* {aka _iobuf}'到'int'的转换无效"错误
- 在 boost 中序列化二进制数据失败,并出现"签名无效"错误
- 基类 T 无效错误
- 从“常量字符*”到“字符*”的转换无效错误