我刚刚下载了 r,我正在尝试下载 quantstrat。唯一的问题是,当我运行以下代码时:
install.packages("devtools")
require(devtools)
install_github("braverock/blotter")
install_github("braverock/quantstrat")
我收到此消息错误:
Error: Failed to install 'blotter' from GitHub:
System command 'R' failed, exit status: 134, stdout + stderr (last 10 lines):
E> dyld: lazy symbol binding failed: Symbol not found: _utimensat
E> Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
E> Expected in: /usr/lib/libSystem.B.dylib
E>
E> dyld: Symbol not found: _utimensat
E> Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
E> Expected in: /usr/lib/libSystem.B.dylib
E>
E> /Library/Frameworks/R.framework/Resources/bin/build: line 10: 869 Done echo 'tools:::.build_packages()'
E> 870 Abort trap: 6 | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" --no-restore --no-echo --args ${args}