Problem with JMP and R (R Send() / R Get() return "The final R statement is incomplete.")Hi, recently i got an problem with JMP 15.2.0 send/get data from R 4.0.3
I just run the following easy script its seem like I can connect to R but cannot send or get data from R using R Send() / R Get()
R Init();
x = [1,2,3];
R Send(x);
R Term();
Results:
The final R statement is incomplete.
Send data for "x" failed
Another problem is when I use R submit() it always return -1. For example
R Init();
R submit("library(dplyr)");Results in Log file:
TKIntRJMP.R version 14.0
Warning:
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
-1I tried to reinstall JMP and R but problem still persist
Appreciate any guidance.
ScriptingRe: Problem with JMP and R (R Send() / R Get() return "The final R statement is incomplete.")When JMP initializes R JMP creates a new session with R. The session is separate from your R sessions established within R. That said, you may need to install R packages in such a way that they can be seen in the session JMP creates. One example:
R Init();
R Submit( "
install.packages('dplyr')
" );
R Submit(
"
library(dplyr)
"
);
Regarding the error:
The final R statement is incomplete.
Send data for "x" failed
I was unable to reproduce this error in JMP 15.2 on OSX 10.15.7, or on Windows 10. Perhaps you are running multiple versions of R on the same system (which is not recommended with JMP)? Also, I am not aware of the operating system you are running JMP and R on. That said, I would suggest contacting Technical Support so they can investigate this further.
Names Default To Here( 1 );
R Init();
x = [1, 2, 3];
R Send( x );
//x2 = R Get (x);
Re: Problem with JMP and R (R Send() / R Get() return "The final R statement is incomplete.")Thanks, for your suggestions.
I'm using R 4.03 with Windows 10 before that I'm using R 4.02 but i already uninstalled from the system.
The final R statement is incomplete.
Send data for "x" failed
This problem seems to happen only when I connect to company network using VPN from my home network. The problem is gone after I directly connect to company network within company. I think it's about windows firewall that block connection between JMP and R.
Problem seems to happen after I run incomplete script in JMP with R.
When it returns an error from my first incorrect syntax script after that even I correct my script and run the script it'll return "The final R statement is incomplete." I tried to restart computer but problem still persists.
Re: Problem with JMP and R (R Send() / R Get() return "The final R statement is incomplete.")I can confirm the same behavior on at least 1 computer with R version 4.0.3 and JMP 15.2.1 on windows 10. R version 3.x seems to work okay though.Re: Problem with JMP and R (R Send() / R Get() return "The final R statement is incomplete.")Additionally, the warning message seems to be related to two or more packages sharing the same name. It appears you may have to remove the ambiguity by referencing the package name when referring to the package's function(s).
TKIntRJMP.R version 14.0
Warning:
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
-1
FYI: To suppress the warning, you can submit "warn.conflicts = FALSE" when you invoke your package.
R Init();
R Submit( "
install.packages('dplyr')
" );
R Submit(
"
library(dplyr, warn.conflicts = FALSE)
"
);
R Term ();