首页 > 解决方案 > 部署闪亮的应用程序时不会加载 RQuantLib

问题描述

我在部署需要 RQuantLib 包的闪亮应用程序时遇到问题。当我运行我的应用程序时,一切正常,即使是需要 RQuantLib 包的部分。但是,在部署应用程序时,该过程会在构建包 RQuantLib 时停止。

当我在“library(RQuantLib)”行中添加评论时,可以部署应用程序,但由于使用这个包,我显然错过了我的部分。

这是错误:

[2018-11-17T22:26:33.546919933+0000] Building R package: RQuantLib (0.4.5)
/mnt/packages/build /mnt
* installing to library ‘/opt/R/3.5.0/lib/R/library’
* installing *source* package ‘RQuantLib’ ...
** package ‘RQuantLib’ successfully unpacked and MD5 sums checked
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for R... yes
checking for quantlib-config... yes
configure: WARNING: RQuantLib requires QuantLib (>= 1.8.0).
configure: error: Please upgrade to a current version.
ERROR: configuration failed for package ‘RQuantLib’
* removing 
‘/opt/R/3.5.0/lib/R/library/RQuantLib’################################# End 
Task Log ################################# 
Erreur : Unhandled Exception: Child Task 565972976 failed: Error building 
image: Error building RQuantLib (0.4.5). Build exited with non-zero status: 
1
De plus : Warning message:
Error detecting locale: Error in read.table(file = file, header = header, 
sep = sep, quote = quote, : incomplete final line found by readTableHeader 
on 'raw'
(Using default: en_US) 

先感谢您 !

标签: rshinypackagequantlib

解决方案


RQuantLib 作者在这里。实际上,我试图使这一点尽可能简单:

configure: WARNING: RQuantLib requires QuantLib (>= 1.8.0).
configure: error: Please upgrade to a current version.
ERROR: configuration failed for package ‘RQuantLib’

也不确定您使用的是什么系统(正如您没有说的那样),但 Debian 和 Ubuntu 本身都有 RQuantLib: sudo apt install r-cran-rquantlib只需要它。

否则,可能值得重新说明一些明显的情况:从源代码构建RQuantLib如果您从源代码安装,您需要在您正在构建(== 安装)的系统上同时使用RQuantLib 。因此安装二进制文件的吸引力——我作为 Debian 维护者提供。


推荐阅读