Another error installing rJava library: rJava.rdb 'corrupted
I have some time this week with Java related packages. I finally got RWeka working (see HERE ) but now I am having problems with rJava.
The package seems to load fine, but when I load the library I get this:
Error in get(method, envir = home) :
lazy-load database '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rJava/R/rJava.rdb' is corrupt
In addition: Warning messages:
1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4], :
restarting interrupted promise evaluation
2: In get(method, envir = home) :
restarting interrupted promise evaluation
3: In get(method, envir = home) : internal error -3 in R_decompress1
Error: package or namespace load failed for ‘rJava’
Any ideas would be greatly appreciated!
source to share
If the package cannot be decompressed by R, then this error has occurred.
Suggestion # 1:
- Try restarting R and starting the application again.
- Sometimes there can be a problem for the creation time of the .rdb.
Resource reference: Fetch error (key): database with lazy loader
Suggestion # 2: Log out and restart a clean R session from R?
If you are in RStudio: command / ctrl + shift + F10
You can also use
.rs.restartR()
Resource reference: Close and restart a clean R session from R?
Suggestion # 3:
Please use a newer version of devtools, it may sometimes fix your problem.
Resource link: https://github.com/wch/movies/issues/3
Suggestion # 4:
Check if the installation is correct JAVA_HOME
or not.
Use the following:
Sys.setenv(JAVA_HOME='...path to JRE...')
OR
Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jdk1.7.0_51\\jre')
Resource link: fooobar.com/questions/171208 / ...
source to share