这是我的脚本:
Names Default To Here( 1 );
R Init();
x = R Submit File("C:/Users/adhil/Documents/JMP/Test Program Validation/Jun 2021 Test Program Release Validation/compile.r");
df = R Get(main_df)
R Term();这是我打算运行的 R 脚本
library(dplyr)
setwd("~/JMP/HPLED Validation/Jun 2021 HPLED Release Validation")
new_tProgram_data <- "./data/A05/data_01.blu"
por_tProgram_data <- "./data/A05/data_02.blu"
new_df <- read.table(new_tProgram_data , sep="\t", skip=2, header=T) %>%
select(c("Row", "Col", "Voltage", "LeakageV", "Power"))
colnames(new_df) <- paste(colnames(new_df), "NEW", sep = "_")
por_df <- read.table(por_tProgram_data , sep="\t", skip=2, header=T) %>%
select(c("Row", "Col", "Voltage", "LeakageV", "Power"))
colnames(por_df) <- paste(colnames(por_df), "POR", sep = "_")
main_df <- merge(new_df, por_df, by.x=c("Row_NEW", "Col_NEW"), by.y=c("Row_POR", "Col_POR"))但是,当我从 JSL 运行 R 脚本并尝试通过以下方式从 r 检索 main_df 时
df = R Get(main_df)
我收到以下错误

x = R Submit File("C:/Users/adhil/Documents/JMP/Test Program Validation/Jun 2021 Test Program Release Validation/compile.r");x 显示 -1
请指教
你好,
你可能已经尝试过这个,但如果没有:尝试使用 R Submit ( ) 语句逐行运行代码(因为你只有几行)穿插着 R Get 语句......然后你应该能够看到是否问题是原始数据(从文件 xxx.blu 本身开始)、合并本身(可能是空的)或其他东西。
干杯,
布雷迪