Because JMP is supported as both a 32-bit and a 64-bit Windows application, you must install the corresponding 32-bit or 64-bit version of R. For the supported version of R, see the system requirements on the JMP website: http://www.jmp.com/support/system_requirements_jmp.shtml
1.
|
Create the variable in your system environment variables using the Control Panel, select Start > Control Panel > System > Advanced system settings.
|
2.
|
Click Environment Variables.
|
4.
|
Type R_HOME for the Variable name.
|
5.
|
6.
|
Create the variable using the JSL Set Environment Variable() function:
Set Environment Variable( "R_HOME", "C:\Program Files\R\R-2.15.3" );
1.
|
Look up the environment variable R_HOME.
|
2.
|
If the environment variable R_HOME does not exist, look up the InstallPath value in the Windows registry under the following key:
|
HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R
For 32-bit JMP running on a 64-bit machine, the InstallPath value is under the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\R-core\R
If the InstallPath value exists, load R from the specified directory.
3.
|
If the InstallPath value does not exist, an error message states that R could not be found.
|
R Init( );
R Submit( "
x <- 1:5
x
" );
R Term( );
[1] 1 2 3 4 5