Ketika saya mengetik require(xlsx)
untuk memuat paket xlsx
di R, pesan berikut akan ditampilkan:
> require(xlsx)
Loading required package: xlsx
Loading required package: xlsxjars
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
Failed with error: ‘package ‘rJava’ could not be loaded’
Saya juga mencoba memuat rJava
paket secara manual tetapi mendapat pesan kesalahan ini:
require(rJava)
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
Apakah Anda punya saran tentang cara mengatasi masalah?
rJava
... Baca ini