Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error thrown by R function write.xlsx {xlsx} #200

Closed
giannilmbd opened this issue Aug 16, 2017 · 5 comments
Closed

Error thrown by R function write.xlsx {xlsx} #200

giannilmbd opened this issue Aug 16, 2017 · 5 comments

Comments

@giannilmbd
Copy link

Hi,
There seem to be a problem trying to write an xlsx file using "write.xlsx".

Here is what happens
`
using RCall

R"library('xlsx')"
RCall.jl: Loading required package: rJava

R"write.xlsx(1,'test.xlsx')"
RCall.jl: Error in write.xlsx(1, "test.xlsx") : `

Same error if I try to write a dataframe object (instead of a simple number)

Also, it doesn't really seem that the library has been loaded
R"?write.xlsx" RCall.RObject{RCall.StrSxp} No documentation for ‘write.xlsx’ in specified packages and libraries: you could try ‘??write.xlsx’

Best,
Gianni

@randy3k
Copy link
Member

randy3k commented Aug 21, 2017

Did you install xlsx properly? Are there error messages when the package xlsx is loaded?
For some unknown reasons, I got segfault when it was loaded

R> library('xlsx')

signal (11): Segmentation fault: 11
while loading no file, in expression starting on line 0
unknown function (ip: 0x128a5b2b3)
Allocations: 7707900 (Pool: 7706482; Big: 1418); GC: 9
Loading required package: rJava
Loading required package: xlsxjars

@giannilmbd
Copy link
Author

giannilmbd commented Aug 21, 2017 via email

@randy3k
Copy link
Member

randy3k commented Aug 21, 2017

May be instead of xlsx, you should try openxlsx. It is much lightweight and it runs faster.

@randy3k
Copy link
Member

randy3k commented Aug 21, 2017

I suspect that xlsx has some PATH issues when it is loaded by Julia. It may be hard to figure out what the exact cause is.

@giannilmbd
Copy link
Author

giannilmbd commented Aug 22, 2017 via email

@palday palday closed this as completed Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants