Skip to contents

Downloads a file to the remote SAS server.

Usage

sas_file_download(sas_path, local_path)

Arguments

sas_path

string; Path of file on remote SAS server to be download

local_path

string; Path to upload SAS file to on local machine.

Value

logical; value indicating if the operation succeeded.

Examples

if (FALSE) { # \dontrun{
# connect to SAS
sas_connect()

# create a file and upload it to SAS
cat("PROC MEANS DATA = sashelp.cars;RUN;", file = "script.sas")
sas_file_upload(local_path = "script.sas", sas_path = "~/script.sas")

# download file from SAS
sas_file_download(sas_path = "~/script.sas", local_path = "script.sas")
} # }