cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
bayesfactor1
Level II

Is there a bug in "R Get()" for a list?

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 );

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Is there a bug in "R Get()" for a list?

2 REPLIES 2
txnelson
Super User

Re: Is there a bug in "R Get()" for a list?

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]
Jim

Re: Is there a bug in "R Get()" for a list?

This is a known issue. Please refer to https://www.jmp.com/support/notes/69/504.html.