這是我的腳本:
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 從 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 Get 語句的 R Submit ( ) 語句逐行運行代碼(因為您只有幾行)...然後您應該能夠看到是否問題是原始數據(從文件 xxx.blu 本身開始)、合併本身(可能是空的)或其他東西。
乾杯,
布雷迪