简体   繁体   中英

package ‘rJava’ is in use and will not be installed

I have been using R for a while without problems. Just a sudden, i have several issues with Rjava errors. I searched online for clues, but found none.

The error is: Warning in install.packages : package 'rJava' is in use and will not be installed

and now every time i run install.packages, i get a pop box that says uploading loaded packages.....

sessionInfo() R version 3.5.2 (2018-12-20) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] miniUI_0.1.1.1 tabulizer_0.2.2 rJava_0.9-10

Every time i start RStudio, i get this error:

Loading required package: rJava Error: package or namespace load failed for 'rJava' in exists(what, mode = "function", envir = ns): reached elapsed time limit

I made sure that i had java versions for 64 bit and the environment was set correctly.

install.packages("rJava");library(rJava)

I want to have a solution so that rjava loads correctly when i start RStudio or install rjava

This looks like you are loading tabulizer on startup, which also loads rJava . I suspect the reason is that you have a file called .RDATA saved in your default working environment. That makes RStudio open and load it on starting. In that file, I suspect there is an object which needs tabulizer . This is why it is loaded on default and why you have these problems.

The solution is to delete or rename the .RDATA file. Use getwd() to find out your current working directory. You might need to make hidden files visible .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM