I am running SAS from R, but i need administrator pivileges to access a folder. I am using this approach
I tried to set user to adminstrator (with help from here), but nothing happens:
sas_log <- tempfile()
sas_out <- tempfile()
sas_script <- "mysasscript.sas"
cmd <- sprintf(
'sas.exe -nosplash -icon -sysin "%s" -log "%s" -print "%s" -user:Administrator',
sas_script, sas_log, sas_out
)
return_code <- system(cmd) # Runs sas and saves the return code to