With my version of JMP (17.0.0) and R (4.2.2), I cannot get list variables back from R with the command "R Get()". I find the error message:
Error: Error in if (is.na(datam)) { : the condition has length > 1
Unexpected errors occurred while attempting to transfer the data.
Get data for "x1" failed
Here is a minimal example to reproduce:
Names Default To Here( 1 );
R Init();
x1 = [1, 2, 3];
R Send( x1 );
R Submit("
print(x1)
print(typeof(x1));
"
);
x2 = R Get( x1 );
I am running Windows 11, JMP 17 and R 4.1.3 and the code runs without error
/*:
//:*/
Names Default To Here( 1 );
R Init();
x1 = [1, 2, 3];
R Send( x1 );
R Submit("
print(x1)
print(typeof(x1));
"
);
x2 = R Get( x1 );
/*:
[,1]
[1,] 1
[2,] 2
[3,] 3
attr(,"name")
[1] "x1"
attr(,"class")
[1] "matrix"
attr(,"DataType")
[1] 1
attr(,"ModelingType")
[1] 1
attr(,"JMPName")
[1] "x1"
attr(,"RName")
[1] "x1"
[1] "double"
[1, 2, 3]This is a known issue. Please refer to JMP® Get Data for x fails using R 4.2.x and later.