RController.close() is not enough to actually destroy the Rserve instance. If terminateRProcess() is declared public and called instead of close() in the RHandler, the process is actually terminated.
LibRegistry creates an RController to install packages, but never closes this controller.
I am not sure if any of this is intended or if we can tinker with it since that code comes from KNIME (albeit an old version).
There are two issues I have discovered:
RController.close() is not enough to actually destroy the Rserve instance. If terminateRProcess() is declared public and called instead of close() in the RHandler, the process is actually terminated.
LibRegistry creates an RController to install packages, but never closes this controller.
I am not sure if any of this is intended or if we can tinker with it since that code comes from KNIME (albeit an old version).
Any suggestions?