>library(rJava) Error: package or namespace load failed for ‘rJava’: .onLoad failed in loadNamespace() for 'rJava', details: call: dirname(this$RuntimeLib) error: a character vector argument expected >write.xlsx(eg,"c:/eg.xlsx") Error in .jnew("java/io/FileOutputStream", jFile): java.io.FileNotFoundException: c:\eg.xlsx (Access is denied)
Your first error is due to some sort of installation issue with rJava. Uninstall and reinstall it.
The second error is due to a permission error, since you don't have permission to write to
C:\. You'll need to write to your home directory or somewhere like that.