在Shiny Server中安装openNLPmodels.en软件包-“错误:构建软件包:openNLPmodels.en”

时间:2019-02-20 01:28:56

标签: r shiny

我正在尝试将闪亮的应用程序部署到闪亮的服务器。尝试安装openNLPmodels.en软件包时,该过程暂停。这是我在服务器文件顶部的代码

library(shiny)
library(dplyr)
library(tm)
library(stringi)
library(stringr)
library(quanteda)
library(readtext)
#for figure of speech in 'no match' function
library(rJava)
library(NLP)
library(openNLP)
install.packages(pkgs = "openNLPmodels.en", contriburl = "https://datacube.wu.ac.at/src/contrib/", type = "source")
library(openNLPmodels.en) #https://datacube.wu.ac.at/src/contrib/

我尝试将'install.packages'行放在顶部,没有不同的结果。该代码行在本地执行时有效(再次安装该软件包)。该软件包不能通过CRAN获得。

我在闪亮的文档中找到了这个,但是没有可用的说明。

“为此,对于服务器上的每个R安装,都将该软件包安装到系统库中,然后将该软件包添加到“连接白名单”中”。

这是输出日志的顶部和底部:

Preparing to deploy application...DONE
Uploading bundle for application: 724921...DONE
Deploying bundle: 1885891 for application: 724921 ...
Waiting for task: 588852675
  building: Parsing manifest
  building: Building image: 1965833
  building: Installing system dependencies
  building: Fetching packages
  error: Building package: openNLPmodels.en
################################ Begin Task Log ################################ 
[2019-02-20T01:13:34.509202549+0000] Execute script: packages/build/rJava.sh

........[suppressed to save space - can add if needed].......

Setting up poppler-utils (0.41.0-0ubuntu1.12) ...
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 588852678 failed: Error building image: Error fetching openNLPmodels.en (1.5-1) source. <CRANPackageSource repo='http://cran.rstudio.org'> unable to satisfy package: openNLPmodels.en (1.5-1)
In addition: Warning message:
In FUN(X[[i]], ...) :
  Package 'openNLPmodels.en 1.5-1' was installed from sources; Packrat will assume this package is available from a CRAN-like repository during future restores
Execution halted

0 个答案:

没有答案