r语言 - 如果RWekajars包安装在Ubuntu 22.04.2 LTS上卡住怎么办?



我正在尝试在Linux Ubuntu 22.04.2 LTS上安装RWekajars包,但是安装在下面描述的时刻卡住了。它似乎正在处理一些东西,但它不显示错误。我已经成功地安装了rJava,以及其他几个包。我该如何解决这个问题?我需要安装这个包,但是它没有进展。

我已经成功运行了命令"R CMD javareconf">

会发生什么?

> install.packages("RWekajars", dependencies = TRUE, type = "source")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/RWekajars_3.9.3-2.tar.gz'
Content type 'application/x-gzip' length 10030557 bytes (9.6 MB)
==================================================
downloaded 9.6 MB
* installing *source* package ‘RWekajars’ ...
** package ‘RWekajars’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
No man pages found in package  ‘RWekajars’ 
*** installing help indices
** building package indices
**** testing if installed package can be loaded from temporary location**

在这一点上,它卡住了几个小时,什么也没有发生....

> sessionInfo()
R version 4.2.2 Patched (2022-11-10 r83330)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.2 LTS
Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
locale:
[1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
[4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
[7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     
loaded via a namespace (and not attached):
[1] compiler_4.2.2  tools_4.2.2     rstudioapi_0.14

尝试重新安装rJava -我有同样的问题,从rforge重新安装为我解决了这个问题

R -e "install.packages('rJava', repos='https://rforge.net')"
R CMD javareconf
R -e "install.packages('RWeka', type = 'source')"

相关内容

最新更新