Closed vzemlys closed 7 years ago
I am almost sure there is an issue with java. Is there a log for what happened?
See answer from Simon Urbanek: http://r.789695.n4.nabble.com/problem-using-rJava-with-parallel-mclapply-td4680245.html
In short, if RServe forks R processes, you won't be able to run R with ReporteRs.
If possible to migrate the code, you could switch to https://CRAN.R-project.org/package=officer
David
There is no log. Or I did not manage/want to find one. Explanation about forking suits me fine. The way I intend to use Rserve, forking is essential. Thanks for explanation and thanks for pointer to officer. I will definitely check it out.
I have encountered a strange bug, when trying to use ReporteRs package via Rserve.
Here is how to reproduce it:
Start Rserve in the following way:
where
load.R
contains only one line:Now run the following R code:
The Rserve hangs.
Now do the same but do not preload the ReporteRs package. I.e. start Rserve like (kill the previous Rserve process first)
and run the code
In this case code executes and the result is the pptx object. So somehow preloading ReporteRs package results in the situation, where its code is not usable. It may be an issue with Rserve, but I noticed this behaviour only with ReporteRs package.
Here is my
session_info()
: