传送带问题-无法安装R包字符串

sta*_*007 3 r stringi appveyor r-package

最近,使用Appveyor进行构建不再起作用。在实际构建程序之前,它会失败,因为无法安装软件包stringi

在本地,一切正常,但是我需要一个针对Appveyor的解决方法。有没有人解决此问题的解决方案?

这是在Appveyor上的错误消息:

  • 安装源程序包'stringi'... **程序包'stringi'成功解压并检查了MD5总数** libs * arch-i386 c:/ Rtools / mingw_32 / bin / g ++ -std = gnu ++ 11 -I“ c: / R / include” -DNDEBUG -I。-Iicu61 / -Iicu61 / unicode -Iicu61 / common -Iicu61 / i18n -DU_STATIC_IMPLEMENTATION -DU_COMMON_IMPLEMENTATION -DU_I18N_IMPLEMENTATION -DUCONFIG_USE_LOCAL -DU_TOOLUTIL_IMPLEMENTATION -DNDEBUG-DWINVER = 0_0_0_2_STR_L_DWIN_ = 0_0_2600 .cpp -o stri_ICU_settings.o / bin / sh:c:/ Rtools / mingw_32 / bin / g ++:没有这样的文件或目录:* [stri_ICU_settings.o]错误127错误:软件包'stringi'的编译失败
  • 删除R CMD INSTALL中的'c:/ RLibrary / stringi'ip(...)错误:(从警告转换)安装软件包'stringi'的退出状态为非零调用:... with_rprofile_user-> with_envvar->强制->强制-> ip执行中止命令已退出,代码为1

另请参阅:https : //ci.appveyor.com/project/frehbach/eventdetectr/builds/19569698

duc*_*ayr 6

您可以通过添加来解决此问题

USE_RTOOLS: true
Run Code Online (Sandbox Code Playgroud)

给你appveyor.yml见这里)。

问题是,由于您不需要编译任何代码,因此AppVeyor不会安装Rtools,但是编译stringi显然需要Rtools。请参阅您链接到构建日志的第40行:

== 10/17/2018 06:33:11: Skipping download of Rtools because src/ directory is missing.
Run Code Online (Sandbox Code Playgroud)

使用上面提到的AppVeyor设置仍然会强制安装Rtools。