Can't Load R Package xlsx

Hi,

I can load the xlsx package in R or RStudio, ,but when I can't use it inside KNIME. I've installed the R package xlsx using "install.packages(xlsx)" within R snippet including the dependencies, but when I run "library(xlsx)", I get the error below.


Error : .onAttach failed in attachNamespace() for 'xlsx', details:
call: .jcall("java.lang.System", "S", "getProperty", "java.version")
error: RcallMethod: cannot determine object class
Error: package or namespace load failed for 'xlsx'

 

How can I load the xlsx package?

Thanks

Hi,

I think that this post (second solution on the page) should solve your problem: https://orajavasolutions.wordpress.com/2014/06/03/installing-and-loading-xlsx-package-in-r-with-ubuntu/

Best,

Jon

Jon, do you have an idea how I can do that in Windows? I don't have any file named "libjvm.so" or anything with "libjvm".

Upgrading to KNIME 3.1 solved the issue. Now I can load xlsx.

Hi Onur

and thank you for the update. Glad this works for you!

Iris