Closed winterwang closed 7 years ago
Hi
Could you make sure you're not in one of the cases described here:
https://davidgohel.github.io/ReporteRs/articles/faq.html#rjava-hell
PS : If you are starting with ReporteRs, I suggests you to use officer
instead.
Thanks for your reply.
I am pretty sure that I was stuck with the rJava
package installation initially. However after looking into the solution suggested from here: Unable to install rJava in R 3.0 in Ubuntu 13.04
by using sudo ln -s /usr/lib/java-9-oracle/lib/server/libjvm.so /usr/lib/
in terminal.
I am using the latest version of java (java-9-oracle
) on my machine. Do you think that could be the reason that lead to this error?
Anyway, I found that I fixed the installation of it and I can also load the package without any warning message until I started to try example(docx)
or example(pptx)
.
Many thanks for your help.
thanks
I don't know, probably something to configure in the system (which is what you did).
David
Hi, I know that you have closed this issue. But I think I have to add more information in case someone else may run into the same issue. It turns out that with Java-8, the example(docx)
and example(pptx)
run smoothly and with no more warnings or errors. Probably because Java-9 on linux is still not stable and under development.
Here are the steps I've done on my machine:
sudo apt-get purge oracle-java9-installer
to uninstall java-9-oracle
from my systemsudo apt-get install oracle-java8-installer
to install java-8-oracle
. sudo updatedb
then locate libjvm.so
get the path to the installed java, in my case, I got /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so
sudo ln -s /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so /usr/lib/
library(ReportRs); example(docx)
And here is the output :
Thanks for that, I will add a link to your solution in the FAQ later.
Hi I just started to try the
example(docx)
command and got this error:Here is the result of my
sessionInfo()
:Any suggestions? Thanks a lot!