简体   繁体   English

无法在 R 中加载“插入符号”

[英]Can't load 'Caret' in R

When loading the caret package the following error appears.加载caret包时出现以下错误。

> library(caret)
Error: package or namespace load failed for ‘caret’:
 object ‘warnErrList’ is not exported by 'namespace:utils'

Even I tried to install 'caret' with all dependencies, it still shows: object 'warnErrList' is not exported by 'namespace:utils'即使我尝试安装带有所有依赖项的“caret”,它仍然显示:“namespace:utils”没有导出对象“warnErrList”

Xu Gao, it is likely that you are on a version of R prior to 3.5.0.徐高,很可能你使用的是3.5.0之前的R版本。 Either you will need to upgrade R, or downgrade whatever package is dependent on it.您要么需要升级 R,要么降级依赖于它的任何软件包。

If you read R-devel NEWS , search for warnErrList , and you'll find如果你阅读R-devel NEWS ,搜索warnErrList ,你会发现

New warnErrList() utility (from package nlme, improved)新的 warnErrList() 实用程序(来自包 nlme,已改进)

You can back this up by looking at the list of exported functions for utils in R-3.5.0 and you can find warnErrList , whereas utils in R-3.4.3 (the previous release of R), the function cannot be found.您可以通过查看R-3.5.0 中utils的导出函数列表来支持这一点,您可以找到warnErrList ,而R-3.4.3R的先前版本)中的utils则找不到该函数。

Unfortunately, I cannot find utils::warnErrList in the caret source directly, which suggests one of its dependencies might be using it and you find out about it late in the game.不幸的是,我无法直接在caret源中找到utils::warnErrList ,这表明它的一个依赖项可能正在使用它,而您在游戏后期才发现它。 If you run traceback() immediately after receiving that error, it may provide some insight as to which package is trying to use it.如果您在收到该错误后立即运行traceback() ,它可能会提供有关哪个包正在尝试使用它的一些见解。 (Some sleuthing will likely be required, searching for function names, even those that are not exported by the intermediate packages.) (可能需要进行一些侦查,搜索函数名称,甚至是中间包未导出的函数名称。)

Also, I request that you please submit a caret issue , including the steps necessary to justify the bug.另外,我请求您提交一个caret问题,包括证明错误的必要步骤。 (I could start an issue, but because I have R-3.5.3, caret-6.0.80, and I cannot reproduce the bug ... it could be disingenuous of me to file the bug ... not to mention that I might be completely wrong about this :-) (我可以开始一个问题,但是因为我有 R-3.5.3、caret-6.0.80,而且我无法重现该错误......提交该错误可能是不诚实的......更不用说我这可能是完全错误的:-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM