Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Different script engine instances in the same R session share an accumulated class path. Furthermore, restarting a script engine does not clear the class path. #6

Open
floidgilbert opened this issue Jan 26, 2018 · 0 comments
Assignees

Comments

@floidgilbert
Copy link
Owner

The short answer
The only way to clear the class path is to restart the R session. This is a limitation of the rJava package that jsr223 depends on.

The explanation
The jsr223 package depends on rJava to manage low-level JVM operations. Using rJava, one R session corresponds to a single in-process JVM. Hence, all Java objects share the same class path. Currently, rJava does not provide a facility to remove entries from the class path. As a result, whenever a new script engine is instantiated with a new class path, the unique entries accumulate in the class path. The only way to clear the class path is to restart the JVM. The only way to restart the JVM is to restart the R session.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant