简体   繁体   English

R 工作室插入符号包 pbkrtest

[英]R studio caret package pbkrtest

I'm not able to load the caret package in R studio due to the missing of /dependecy on the 'pbkrtest' package.由于“pbkrtest”包上缺少 /dependecy,我无法在 R studio 中加载插入符包。 However, the pbkrtest package is not available in R studio Version 0.99.879 (for mac).但是,pbkrtest 包在 R studio 版本 0.99.879(适用于 mac)中不可用。 I updated R studio and all packages already.我已经更新了 R studio 和所有包。 Here is the error message:这是错误消息:

error message R Studio错误信息 R Studio

Thanks!谢谢!

If you can't or don't want to upgrade R for whatever reason (for example if you are running a SQL Server in-database R), a solution to this problem for me was to install the pbkrtest package from source directly ( package version history ). 如果你不能或不想(如果你正在运行的SQL Server的数据库内的R用实例),解决了这个问题对我来说,升级的R用什么理由是从源代码安装直接pbkrtest包( 包版本历史 )。 You can try different versions, but the one that worked for me was 0.4-4. 您可以尝试不同的版本,但对我有用的版本是0.4-4。 You can install using the following command: 您可以使用以下命令进行安装:

install.packages(path_to_file, lib=lib,repos = NULL, type="source")

where "path_to_file" is the location of your package with the package file name ending in .tar.gz likely and "lib" is the optional parameter for your R library -- if omitted the default will be used. 其中“ path_to_file”是包的位置,包文件名以.tar.gz结尾,“ lib”是R库的可选参数-如果省略,将使用默认值。

#This should work!

remove.packages("caret")
#this will completely uninstall caret from your device
install.packages("caret")

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

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