Closed rpodcast closed 10 years ago
Hi
Thanks, that's clear and I am able to reproduce the issue.
This is the same issue (go to the end directly) than: https://github.com/davidgohel/R2DOCX/issues/4
Is there some dependency on an X11 server?
Yes and no, ReporteRs needs informations on font metrics, this is done with a java.awt library. AWT package need a DISPLAY variable to be used. There is also an option to run it with no graphical envirironment.
-Djava.awt.headless=true
However, I will get back to you when I will have a solution! Hopefully today or tomorrow. I think I will have to modify the java code...
David
But I am also surprised that it works with R and not with RStudio server (I recently face weird issue with rJava that was ok with R but not with RStudio Web server). I don't understand what is going on here...
Hi,
The version 0.5.5 should fix the issue. Could you please test and tell me if it is ok?
David
Hi David,
I just tested this out on a few different RStudio Server installations and now it works! Thank you very much for the quick turnaround to fix the issue. I'm looking forward to using this package as part of my R markdown and Shiny app workflow.
I am running ReporteRs 0.5.4 installed from the GitHub repo on R 3.0.2. We have R installed in a shared filesystem so I can use the linux versions of RStudio (desktop or server versions) with this same installation of R. I am able to run the minimal
FlexTable
example from the FlexTable documentation page without a problem using normal R and RStudio desktop edition. However I receive a strange Java type error when running the example in RStudio Server. Here is the session output:We have the following version of Java installed on this particular RStudio server:
Another interesting note is the example works fine just using R from the command line on this same server. Is there some dependency on an X11 server? We usually run RStudio Server on a headless server (i.e. no X11 servers). I'm happy to provide any additional information if requested. Here's the
sessionInfo()