[英]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.