R 吸墨器组件安装时出现问题:“1”;吸墨纸具有非零退出状态;

R 吸墨器组件安装时出现问题:“1”;吸墨纸具有非零退出状态;,r,package,installation,R,Package,Installation,我正在尝试安装quantstrat软件包,我意识到我需要先安装blotter。然后我得到了以下错误消息: Downloading GitHub repo braverock/blotter@master Installing 1 packages: quadprog Installing package into ‘C:/Users/servo/OneDrive/Documentos/R/win-library/3.6’ (as ‘lib’ is unspecified) trying URL

我正在尝试安装quantstrat软件包,我意识到我需要先安装blotter。然后我得到了以下错误消息:

Downloading GitHub repo braverock/blotter@master
Installing 1 packages: quadprog
Installing package into ‘C:/Users/servo/OneDrive/Documentos/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/quadprog_1.5-8.zip'
Content type 'application/zip' length 54859 bytes (53 KB)
downloaded 53 KB

package ‘quadprog’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\servo\AppData\Local\Temp\RtmpcT8IdK\downloaded_packages
√  checking for file 'C:\Users\servo\AppData\Local\Temp\RtmpcT8IdK\remotes6b3832e71ab8\braverock-blotter-67be2c8/DESCRIPTION' (545ms)
-  preparing 'blotter':
√  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
-  building 'blotter_0.14.8.tar.gz'

Installing package into ‘C:/Users/servo/OneDrive/Documentos/R/win-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package 'blotter' ...
** using staged installation
** libs
C:/RBuildTools/3.5/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c calcPosAvgCost.c -o calcPosAvgCost.o
C:/RBuildTools/3.5/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c init.c -o init.o
C:/RBuildTools/3.5/mingw_64/bin/gcc -shared -s -static-libgcc -o blotter.dll tmp.def calcPosAvgCost.o init.o -LC:/PROGRA~1/R/R-36~1.1/bin/x64 -lR
installing to C:/Users/servo/OneDrive/Documentos/R/win-library/3.6/00LOCK-blotter/00new/blotter/libs/x64
** R
** data
** demo
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package 'xts' was built under R version 3.6.3
Execution halted
ERROR: lazy loading failed for package 'blotter'
* removing 'C:/Users/servo/OneDrive/Documentos/R/win-library/3.6/blotter'
* restoring previous 'C:/Users/servo/OneDrive/Documentos/R/win-library/3.6/blotter'
Error: Failed to install 'blotter' from GitHub:
  (converted from warning) installation of package ‘C:/Users/servo/AppData/Local/Temp/RtmpcT8IdK/file6b3826d4f8e/blotter_0.14.8.tar.gz’ had non-zero exit status
我的代码:

install_github("braverock/blotter")
错误消息:

Downloading GitHub repo braverock/blotter@master
Installing 1 packages: quadprog
Installing package into ‘C:/Users/servo/OneDrive/Documentos/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/quadprog_1.5-8.zip'
Content type 'application/zip' length 54859 bytes (53 KB)
downloaded 53 KB

package ‘quadprog’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\servo\AppData\Local\Temp\RtmpcT8IdK\downloaded_packages
√  checking for file 'C:\Users\servo\AppData\Local\Temp\RtmpcT8IdK\remotes6b3832e71ab8\braverock-blotter-67be2c8/DESCRIPTION' (545ms)
-  preparing 'blotter':
√  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
-  building 'blotter_0.14.8.tar.gz'

Installing package into ‘C:/Users/servo/OneDrive/Documentos/R/win-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package 'blotter' ...
** using staged installation
** libs
C:/RBuildTools/3.5/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c calcPosAvgCost.c -o calcPosAvgCost.o
C:/RBuildTools/3.5/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c init.c -o init.o
C:/RBuildTools/3.5/mingw_64/bin/gcc -shared -s -static-libgcc -o blotter.dll tmp.def calcPosAvgCost.o init.o -LC:/PROGRA~1/R/R-36~1.1/bin/x64 -lR
installing to C:/Users/servo/OneDrive/Documentos/R/win-library/3.6/00LOCK-blotter/00new/blotter/libs/x64
** R
** data
** demo
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package 'xts' was built under R version 3.6.3
Execution halted
ERROR: lazy loading failed for package 'blotter'
* removing 'C:/Users/servo/OneDrive/Documentos/R/win-library/3.6/blotter'
* restoring previous 'C:/Users/servo/OneDrive/Documentos/R/win-library/3.6/blotter'
Error: Failed to install 'blotter' from GitHub:
  (converted from warning) installation of package ‘C:/Users/servo/AppData/Local/Temp/RtmpcT8IdK/file6b3826d4f8e/blotter_0.14.8.tar.gz’ had non-zero exit status

有人知道如何解决这个问题吗?

你能告诉我你的R版本吗

我想应该是
3.6.3
,但我只是想确定一下

错误显示,安装
xts
软件包未成功,因此依赖于它的
blotter
安装失败

因此,您可以先安装
xts
软件包。(独立地)

然后重试安装
吸墨纸

如果再次失败,即使
xts
已成功安装,请再次显示该错误消息

(或者也未能安装
xts

  • R已针对第4版进行了更新,考虑对其进行更新

你能告诉我你的R版本吗

我想应该是
3.6.3
,但我只是想确定一下

错误显示,安装
xts
软件包未成功,因此依赖于它的
blotter
安装失败

因此,您可以先安装
xts
软件包。(独立地)

然后重试安装
吸墨纸

如果再次失败,即使
xts
已成功安装,请再次显示该错误消息

(或者也未能安装
xts

  • R已针对第4版进行了更新,考虑对其进行更新