使用我的 JMP (17.0.0) 和 R (4.2.2) 版本,我无法使用命令“R Get()”从 R 获取列表变量。 我发现错误信息:
错误:if (is.na(datam)) { 错误:条件的长度 > 1
尝试传输数据时出现意外错误。
获取“x1”的数据失败
这是一个最小的重现示例:
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 );
我正在运行 Windows 11、JMP 17 和 R 4.1.3,代码运行没有错误
/*:
//:*/
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]