R - 插入符号出现问题 - “loadNamespace 中的错误...没有名为“recipes”的包; ”

发布于 2025-01-17 03:58:59 字数 1351 浏览 4 评论 0原文

我正在尝试运行 Box-Cox 转换函数,但我不断收到以下错误消息。在代码和错误下面,我列出了一些我已安装但无济于事的库和软件包。我正在使用带有 R 的 Jupyter 笔记本

Mycode:

caret::BoxCoxTrans(mydataframe$mycolumn)

控制台中的错误:

loadNamespace 中的错误( i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):

没有名为“recipes”的包 回溯:

  1. 插入符::BoxCoxTrans
  2. getExportedValue(pkg, name)
  3. asNamespace(ns)
  4. getNamespace(ns)
  5. loadNamespace(name)
  6. namespaceImport(ns, loadNamespace(i, c(lib.loc, .libPaths())), 。 versionCheck = vI[[i]]), from = package)
  7. loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
  8. withRestarts(stop(cond), retry_loadNamespace = function( ) NULL)
  9. withOneRestart(expr, restarts[[1L]])
  10. doWithOneRestart(return(expr), restart)

我已完成以下故障排除:

install.packages('caret',dependency = TRUE)

install.packages(“recipes”,dependency = TRUE)

install.packages(c('ddalpha') , 'recipes'))

“Recipes”无论是什么似乎都被下载了,因为我收到了以下警告: “包'recipes'的安装具有非零退出状态”install.packages(“recipes”,dependency = TRUE)中的警告消息:

非常感谢帮助我不知道问题是什么

所需的输出:

Box- Cox 变换

用于估计 Lambda

输入数据摘要的 xx 数据点: 分钟。第一曲。第三曲区中位数平均值。最大限度。 xx

最大/最小:xx 样本偏度:xx

估计 Lambda:xx

I'm trying to run the Box-Cox Transformation function but I keep getting the below error message. Below the code and error I have listed some of the libraries and packages that I've installed to no avail. I'm using Jupyter notebook with R

Mycode:

caret::BoxCoxTrans(mydataframe$mycolumn)

The error in the console:

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):

there is no package called 'recipes'
Traceback:

  1. caret::BoxCoxTrans
  2. getExportedValue(pkg, name)
  3. asNamespace(ns)
  4. getNamespace(ns)
  5. loadNamespace(name)
  6. namespaceImport(ns, loadNamespace(i, c(lib.loc, .libPaths()),
    . versionCheck = vI[[i]]), from = package)
  7. loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
  8. withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  9. withOneRestart(expr, restarts[[1L]])
  10. doWithOneRestart(return(expr), restart)

I have done the following troubleshooting:

install.packages('caret', dependencies = TRUE)

install.packages("recipes", dependencies = TRUE)

install.packages(c('ddalpha', 'recipes'))

"Recipes" whatever that is seems to be downloaded as I got the following warning amongst others:
"installation of package 'recipes' had non-zero exit status"Warning message in install.packages("recipes", dependencies = TRUE):

Help would be very much appreciated I don't know what the problem is

Desired output:

Box-Cox Transformation

xx data points used to estimate Lambda

Input data summary:
Min. 1st Qu. Median Mean 3rd Qu. Max.
xx

Largest/Smallest: xx
Sample Skewness: xx

Estimated Lambda: xx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文