cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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?

This is a known issue. Please refer to JMP® Get Data for x fails using R 4.2.x and later.

Dahlia Watkins

View solution in original post

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 JMP® Get Data for x fails using R 4.2.x and later.

Dahlia Watkins

Recommended Articles