简体   繁体   English

R 中的加载命名空间问题

[英]Load namespace issue in R

I'm trying to run some functions with the tidyquant package, but then I've got this error when I run something like tidyquant::tq_get("AAPL") or tidyquant::tq_get("AAPL") :我正在尝试使用 tidyquant package 运行一些功能,但是当我运行tidyquant::tq_get("AAPL")tidyquant::tq_get("AAPL")类的东西时出现此错误:

Error: .onLoad failed in loadNamespace() for 'timetk', details: call: vector("list", length = ncol(frame_mat))

If I run library(timetk) , I've got the same error.如果我运行library(timetk) ,我会遇到同样的错误。

What can I do?我能做些什么? I already reinstall R, but it doesn't work.我已经重新安装了 R,但它不起作用。

Here is my session.这是我的 session。

R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale:
[1] LC_COLLATE=Spanish_Mexico.1252
[2] LC_CTYPE=Spanish_Mexico.1252
[3] LC_MONETARY=Spanish_Mexico.1252
[4] LC_NUMERIC=C
[5] LC_TIME=Spanish_Mexico.1252

Since I'm working on Windows, a solution that I get is to create/edit the.Rprofile in the documents folder.由于我正在研究 Windows,因此我得到的解决方案是在文档文件夹中创建/编辑 .Rprofile。 Into this file, I saved the command require(timetk) .在这个文件中,我保存了命令require(timetk) I'm also working with parallel processing, so this solves this issue.我也在使用并行处理,所以这解决了这个问题。

If anyone still got this problem, let me know.如果有人仍然遇到这个问题,请告诉我。

Just came across the same problem - solved for me by the package maintainer Matt Dancho: update package 'recipes'刚刚遇到同样的问题 - package 维护者 Matt Dancho 为我解决了:更新 package 'recipes'

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

相关问题 如何自动将函数加载到 R 包的命名空间中 - How to automatically load functions into namespace of an R package 如何避免使用 R 加载命名空间时出错 - How to avoid Error in load Namespace using R R错误:readRDS(nsInfoFilePath)中的命名空间加载失败 - R error: Namespace load failed for in readRDS(nsInfoFilePath) 无法记录我的R包“ NAMESPACE”问题 - Cannot document my R package 'NAMESPACE' issue 'sf'(R包)的命名空间加载失败,无法加载共享对象 - namespace load failed for ‘sf’ (R package) , unable to load shared object 必须在r:可能的环境/命名空间问题中为函数提供“Origin”问题 - “Origin” must be supplied issue with the function in r: possibly environment/namespace issue r编程-loadnamespace中的错误-包或名称空间加载失败 - r programming - error in loadnamespace - package or namespace load failed 从 GitHub 加载 R package 时出现“包或命名空间加载失败”错误 - "package or namespace load failed" error in loading R package from GitHub PowerBI Desktop 和 R 错误:“ggplot2”的包或命名空间加载失败 - PowerBI Desktop and R Error: package or namespace load failed for 'ggplot2' 运行 R Markdown '包或命名空间加载失败'时出现 tidyverse 错误 - tidyverse error while running R Markdown 'package or namespace load failed'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM