I am facing the following issues in RStudio running on Windows 7. I repaired Java and the jvm.dll file is also there:
library(xlsx) # necessary to write data
Error : .onLoad failed in loadNamespace() for 'xlsx', details:
error: Cannot create Java virtual machine (-6)
In addition: Warning message:
package ‘xlsx’ was built under R version 3.1.3
Error: package or namespace load failed for ‘xlsx’
Can anyone help me? I cant run the xlsx library and its crucial to my code.