我从R运行SAS,但我需要管理员权限才能访问文件夹。我正在使用this方法
我尝试将用户设置为管理员(在here的帮助下),但没有任何反应:
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
答案 0 :(得分:0)
我有同样的问题。对我有用的是直接在Windows中更改SAS.exe权限(右键单击图标,属性等)。一个UAC窗口确实弹出,虽然有点烦人......