overview
When running JSL that interacts with R, as in this online help example, in JMP 19 for Windows, you may see the following JMP warning: "No valid R connection defined."

reason
The environment variable R_HOME is not set.
Solution Decision
Please perform the following steps:
Notice: This procedure explains the example assuming that the version of R used is 4.5.2 and the installation location is the default. The default installation location for R usually changes depending on the version, so you will need to specify the "Variable Value" in step 4 according to the version you are using.
1. Type "environment variables" in the search bar at the bottom of the Windows screen and click "Edit the system environment variables" that appears.
2. In the System Properties window that appears, click Environment Variables at the bottom of the Advanced tab.
3. In the "Environment Variables" window, click " New " in the "System Variables" box.
4. When the "New System Variable" window appears, enter R_HOME as the variable name and the installation location of your R as the variable value, as shown below, and click OK .

5. Click OK in the Environment Variables window.
6. Click OK in the System Properties window.
7. Launch JMP 19 .
*If you started JMP 19 before setting the R_HOME environment variable, please exit JMP 19 and start it again.
8. Run JSL that interacts with R.