How to set environment variables in Netbeans 8.0.2?

I am running a test class that comes with my JRI (Java-R interface). I run it through NetBeans. Unfortunately, NetBeans complains that R_HOME is not installed.

Creating Rengine (with arguments) Rengine created, waiting for R R_HOME is not set. Please set all required environment variables before running this program. Cannot load R Unable to start R 

How to add R_HOME environment variable in NetBeans?


What I tried:

  • I defined R_HOME in .bash_profile and .bashrc. /Library/Frameworks/R.framework/Resources
  • Right click on my project name> Properties> Run ... but then I can not see to add environment variables. I see only "Arguments" and "VM Parameters".

I'm just a couple of solutions (in the last half hour).

  • Add the line export R_HOME=/path/to/r_home/ to netbeans.conf.
  • Call NetBeans from a terminal where R_HOME is already installed.

However, it is still open for a GUI solution.

+5
source share

Source: https://habr.com/ru/post/1235038/


All Articles