Hi,
I am trying to source an R script which reads and formats my data.
I can do this using the following code:
proc options option=RLANG;
run;
proc iml;
submit / R OK=isOK;
source('Data_Preparation.R')
endsubmit;
quit;
It seems to read in everything OK, but the last bit of the Data_Preparation.R file is to write the final dataset which I then read into SAS, but nothing gets written.
The code runs with no errors, but has the warning:
"An exception of type c0000005 occurred at address 6c910ef2 while processing the submitted R statements. This address is at offset 10ef2 into module "H:\R\R-3.6.0\bin\i386\R.dll"
I don't understand what this warning is or if it's relevant, but it's the only thing I could find that didn't look normal.
I am using SAS v9.4, and I have used RLANG successfully before, so I'm not sure what's going on. I tried both with and without the 'OK = isOK' bit. I just found that on another forum and tried it, but it did nothing that I can tell.
Can anyone help?