cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

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