This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Export File Error In R ?
>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)
r rna-seq software error java rjava

1 answer

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.

Log in to answer this question.