在R / RStudio

时间:2016-03-17 10:20:03

标签: r opennlp

在R / RStudio

中安装软件包'openNLPmodels.de'时出错

当我尝试在RStudio中安装软件包'openNLPmodels.de'时,我收到以下错误消息。我运行Win7,Java 8和最新版本的RStudio和R. openNLP和openNLPdata都已正确安装。你能帮我安装一下这个包吗?非常感谢你提前!!!多米尼克

首选:由R安装:

> install.packages("openNLPmodels.de", repos = "http://datacube.wu.ac.at/", type = "source")
Installing package into ‘\\xxx/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'http://datacube.wu.ac.at/src/contrib/openNLPmodels.de_1.5-2.tar.gz'
Content type 'application/x-gzip' length 8393712 bytes (8.0 MB)
downloaded 8.0 MB

"\\xxx"
CMD.EXE wurde mit dem oben angegebenen Pfad als aktuellem Verzeichnis gestartet.
UNC-Pfade werden nicht untersttzt.
Stattdessen wird das Windows-Verzeichnis als aktuelles Verzeichnis gesetzt.
* installing *source* package 'openNLPmodels.de' ...
** inst
** help
No man pages found in package  'openNLPmodels.de' 
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Warnung in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE)
  there is no package called 'openNLPmodels.de'
Fehler: Laden fehlgeschlagen
Ausführung angehalten
*** arch - x64
Warnung in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE)
  there is no package called 'openNLPmodels.de'
Fehler: Laden fehlgeschlagen
Ausführung angehalten
ERROR: loading failed for 'i386', 'x64'
* removing '\\xxx/R/win-library/3.2/openNLPmodels.de'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.4/bin/x64/R" CMD INSTALL -l "\\xxx\R\win-library\3.2" C:\xxx\AppData\Local\Temp\Rtmpy035U7/downloaded_packages/openNLPmodels.de_1.5-2.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘openNLPmodels.de’ had non-zero exit status

The downloaded source packages are in
    ‘C:\xxx\AppData\Local\Temp\Rtmpy035U7\downloaded_packages’

第二种选择:安装为本地软件包,我之前从datacube-website下载。

> install.packages("C:/Temp/openNLPmodels.de_1.5-2.tar.gz", repos = NULL, type = "source")
Installing package into ‘\\xxx/R/win-library/3.2’
(as ‘lib’ is unspecified)
"\\xxx"
CMD.EXE wurde mit dem oben angegebenen Pfad als aktuellem Verzeichnis gestartet.
UNC-Pfade werden nicht untersttzt.
Stattdessen wird das Windows-Verzeichnis als aktuelles Verzeichnis gesetzt.
* installing *source* package 'openNLPmodels.de' ...
** inst
** help
No man pages found in package  'openNLPmodels.de' 
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Warnung in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE)
  there is no package called 'openNLPmodels.de'
Fehler: Laden fehlgeschlagen
Ausführung angehalten
*** arch - x64
Warnung in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE)
  there is no package called 'openNLPmodels.de'
Fehler: Laden fehlgeschlagen
Ausführung angehalten
ERROR: loading failed for 'i386', 'x64'
* removing '\\xxx/R/win-library/3.2/openNLPmodels.de'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.4/bin/x64/R" CMD INSTALL -l "\\xxx\R\win-library\3.2" "C:/Temp/openNLPmodels.de_1.5-2.tar.gz"' had status 1
Warning in install.packages :
  installation of package ‘C:/Temp/openNLPmodels.de_1.5-2.tar.gz’ had non-zero exit status

1 个答案:

答案 0 :(得分:0)

我的问题现在已经解决了。如果其他人有同样的问题,这是解决方案:

我在C:\ programs上安装了R和RStudio ....因为我没有权利在C:\ program directy上编写,我在另一个网络中安装了所有软件包Y:\ R ....不知何故安装过程有问题需要处理网络。

我完全卸载了R和RStudio并在C:\ tools \ R下再次安装了所有内容(软件和软件包)......现在每个安装都运行得非常快,我甚至没有openNLPmodels.de的问题了!

干杯RDominik