@Ricardo Pietrobon Thank you for bringing this to my attention.
Ok the problem is that the xlsx package relies on Depends and not Imports to load the call to .jnew
from the rJava package. This means if you have used library(xlsx)
then read.xlsx
works fine, however if only the read.xlsx
is attached via namespace then rJava's .jnew
is not called. hence the error. This is confirmed in that the NAMESPAE file for xlsx contains:
import("xlsxjars")
exportPattern("^[^\\.]")
This became a problem because CRAN recently required more restrictive checks and I started using importFrom
rather than import
and relying on Depends. I actually recieved a warning along these lines from Prof. Brian Ripley about relying on Depends. At the time I didn't understand it but heeded it. I now get exactly what he was talking about.
For the time being I have added rJava
to the Depends field in the DESCRIPTION file. This throws a NOTE in the CRAN check as I'm Depending but not importing and needs to be removed after xlsx is updated.
I opened an issue with the xlsx package in the link below regarding the problem. Hopefully this gets fixed and uploaded soon. In the mean time notes()
should be operating fine.
https://code.google.com/p/rexcel/issues/detail?id=24&thanks=24&ts=1379267751
I opened an issue at report's GitHub concerning this and as I believe the original problem has been solved, further conversation can be directed there.