【问题标题】:Error when installing package ‘openNLPmodels.de’ in R / RStudio在 R / RStudio 中安装包“openNLPmodels.de”时出错
【发布时间】:2016-03-17 10:20:03
【问题描述】:

在 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

【问题讨论】:

    标签: r opennlp


    【解决方案1】:

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

    我在 C:\programs.... 上安装了 R 和 RStudio。因为我无权直接在 C:\programs 上编写,所以我将所有软件包安装在另一个网络位置 Y:\R....安装过程有网络问题需要处理。

    我完全卸载了 R 和 RStudio,并在 C:\tools\R 下重新安装了所有东西(软件和软件包)...现在每次安装都运行得非常快,我什至不再使用 openNLPmodels.de 了!

    干杯 RDominik

    【讨论】:

      猜你喜欢
      • 2012-09-04
      • 2017-08-18
      • 1970-01-01
      • 1970-01-01
      • 2014-04-08
      • 2023-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多