简体   繁体   English

在 MAC 上安装 quantstrat 包时遇到问题

[英]Trouble installing quantstrat package on MAC

I'm sure it's a dumb question but I am currently doing the quantitative analyst course in R on datacamp and I cannot install and require the quantstrat package: please view the code and error I get below:我确定这是一个愚蠢的问题,但我目前正在 datacamp 上用 R 进行定量分析课程,我无法安装并需要 quantstrat 包:请查看我在下面得到的代码和错误:

remotes::install_github("braverock/quantstrat")

Downloading GitHub repo braverock/quantstrat@master Skipping 1 packages not available: blotter ✓ checking for file '/private/var/folders/vj/hns236zs3td7hn6xlrq60g840000gn/T/Rtmprb7rht/remotes13e7359179ac/braverock-quantstrat-9960e3e/DESCRIPTION' ... ─ preparing 'quantstrat': ✓ checking DESCRIPTION meta-information ... ─ cleaning src ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories ─ looking to see if a 'data/datalist' file should be added NB: this package now depends on R (>= 3.5.0) WARNING: Added dependency on R >= 3.5.0 because serialized objects in serialize/load version 3 cannot be read in older versions of R. File(s) containing such objects: 'quantstrat/data/luxor.wfa.ples.RData' WARNING: Added dependency on R >= 3.5.0 because serialized objects in serialize/load version 3 cannot be read in older versions of R. File(s) containing such objects: 'quantstrat/luxor.wfa.ples.RData' ─ building 'quantstrat_0.16.6.tar.g正在下载 GitHub 存储库 braverock/quantstrat@master 跳过 1 个不可用的包:吸墨纸 ✓ 检查文件 '/private/var/folders/vj/hns236zs3td7hn6xlrq60g840000gn/T/Rtmprb7rht/remotes13e735919-96acTIONat'/private/var/folders/vj/hns236zs3td7hn6xlrq60g840000gn/T/Rtmprb7rht/remotes13e735919-976acTION/... 'quantstrat': ✓ 检查说明元信息 ... ─ 清理 src ─ 检查源代码中的 LF 行尾符以及 make 文件和 shell 脚本 ─ 检查空目录或不需要的目录 ─ 查看是否有 'data/datalist' 文件应添加注意:此​​包现在依赖于 R (>= 3.5.0) 警告:添加了对 R >= 3.5.0 的依赖,因为在旧版本的 R 中无法读取序列化/加载版本 3 中的序列化对象。 ) 包含此类对象:'quantstrat/data/luxor.wfa.ples.RData' 警告:添加了对 R >= 3.5.0 的依赖,因为在旧版本的 R 中无法读取序列化/加载版本 3 中的序列化对象。 ) 包含这样的对象:'quantstrat/luxor.wfa.ples.RData' ─ building 'quantstrat_0.16.6.tar.g z' z'

Then I get this message below after it attempts to download it:然后我在尝试下载后收到以下消息:

ERROR: dependency 'blotter' is not available for package 'quantstrat' * removing '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/quantstrat' Error: Failed to install 'quantstrat' from GitHub: (converted from warning) installation of package '/var/folders/vj/hns236zs3td7hn6xlrq60g840000gn/T//Rtmprb7rht/file13e7487dac5f/quantstrat_0.16.6.tar.gz' had non-zero exit status错误:依赖 'blotter' 不适用于包 'quantstrat' * 删除 '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/quantstrat' 错误:无法从 GitHub 安装 'quantstrat':(转换自警告)安装包“/var/folders/vj/hns236zs3td7hn6xlrq60g840000gn/T//Rtmprb7rht/file13e7487dac5f/quantstrat_0.16.6.tar.gz”有非零退出状态

Seemed blotter wasn't installed.似乎没有安装吸墨纸。 If someone is experiencing the same issue:如果有人遇到同样的问题:

remotes::install_github("braverock/blotter")
remotes::install_github("braverock/quantstrat")

This should work :)这应该有效:)

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

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