Yes, exactly. The program runs to completion, but no csv files are created. When I run the exact code in R, it successfully creates the csv files. The directory is not on the hard drive of the computer, but it should be accessible. I haven't had any issues loading and creating files or new directories in the past in this directory. It's interesting, when I split it up into 2 main chunks: Chunk 1: PROC IML ;
submit / R ;
load("X:/NAYSHAW/NAYSHAW results/output_11055, 11056, 11062, 11066/meta/sleeplog.RData") #ggir log
write.csv(sleeplog, file = paste("X:/NAYSHAW/NAYSHAW results/output_11055, 11056, 11062, 11066/meta/","/","sleeplog.csv",sep="")) #csv log
endsubmit; and Chunk 2: submit / R ;
library(lubridate)
library(tidyverse)
x=c(dir("X:/NAYSHAW/NAYSHAW results/output_11055, 11056, 11062, 11066/meta/ms3.out", full.names = TRUE, ignore.case = TRUE))
tmp1=x[1:length(x)]
convert_csv<-function(tmp1) {
load(tmp1)
fname = unlist(strsplit(tmp1,"ms3.out/"))[2]
fname2 = unlist(strsplit(fname,".RData"))[1]
write.csv(sib.cla.sum, file = paste("X:/NAYSHAW/NAYSHAW results/output_11055, 11056, 11062, 11066/meta/csv","/",fname2,".csv",sep=""))
}
lapply(tmp1,convert_csv)
endsubmit ; Chunk 1 successfully loads and writes the file. But Chunk 2 runs to completion with no resulting CSV files.
... View more