Rcpp 包和 Forecast 包问题(旧版本) [英] Rcpp package and Forecast package issues (old versions)

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

问题描述

我有两台 R 版本为 3.0.0 的 linux 机器

I have two linux machines with R version 3.0.0

我已经在两台机器上安装了 4.8 版的预测包.

I've installed the forecast package version 4.8 on both machines.

两台机器具有相同版本的依赖项:

Both machines have the same version of dependencies :

>ip <- installed.packages()
>ip[c("forecast","Rcpp","RcppArmadillo"),c("Package","Version")]
              Package         Version
forecast      "forecast"      "4.8"
Rcpp          "Rcpp"          "0.10.2"
RcppArmadillo "RcppArmadillo" "0.4.000.4"

但是当我在另一个节点上运行它时,出现以下错误:

But when I run it on the other node I get the following error :

>library(forecast)
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
  namespace ‘Rcpp’ 0.10.2 is already loaded, but >= 0.11.0 is required
Error: package or namespace load failed for ‘forecast’

这些 R 版本有点旧,因为它们用在 Vertica 的R 语言包"中,我无法升级版本和 Rcpp 包.

These R versions are a little old because they are used in Vertica's 'R language pack' in which I can't upgrade the version and the Rcpp package.

我该如何解决这个问题或进一步研究问题?

How can I solve this or research the problem further?

推荐答案

也许您需要与 Vertica 谈谈?

Maybe you need to talk to Vertica?

简而言之,做以下事情之一:

In short, do one of these things:

  • 与您的供应商合作,并坚持使用旧版本(这很糟糕:R 3.0.0 已被 3.0.1 和 3.0.2 取代,3.0.3 将于下周发布;Rcpp 0.10.2 是古代,我们现在在 0.11.0);

  • go with your vendor, and stick to old versions (which is bad: R 3.0.0 has been superseded by 3.0.1 and 3.0.2 with 3.0.3 coming out next week; Rcpp 0.10.2 is ancient, we are at 0.11.0 now);

更新您的软件包,但请确保同步进行(即使用构建预测版本时当前的 Rcpp 版本——您当前使用需要 Rcpp 0.11.0 的版本时违反了该版本)你只有 Rcpp 0.10.2 [很旧!!];

update your packages, but make sure yo do it in lockstep (ie use the Rcpp version that was current when your version of forecast was built -- which you currently violate using a version that need Rcpp 0.11.0 when you only have Rcpp 0.10.2 [ very old !! ];

忽略您的供应商并在本地库中更新,预先添加 .libPaths()(有关详细信息,请参阅 help(Startup))

ignore your vendor and update in a local library, pre-pend the .libPaths() (see help(Startup) for details)

最后,如果可以的话,我发现您的问题标题具有误导性.我会说错误是由于您在基础 R(来自 Vertica)上安装了不匹配的版本.Rcpp、RcppArmadillo 和 predict 包在正常环境中都可以正常工作.

Lastly, if I may, I find the title of your question misleading. I'd say the error is due to your installation of non-matching version onto your base R (from Vertica). The packages Rcpp, RcppArmadillo and forecast all work just fine in a normal environment.

这篇关于Rcpp 包和 Forecast 包问题(旧版本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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