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)
• 3,534 views
•
link
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.
• 0 views
•
link
Log in to answer this question.