Skip to contents

Uploads a file to the remote SAS server.

Usage

sas_file_upload(local_path, sas_path)

Arguments

local_path

string; Path of file on local machine to be uploaded.

sas_path

string; Path to upload local file to on the remote SAS server.

Value

logical; value indicating if the operation succeeded.

See also

Examples

if (FALSE) { # interactive()
# connect to SAS
sas_connect()

# create a file to upload
tempfile_path <- tempfile(fileext = ".sas")
tempfile_basename <- basename(tempfile_path)
cat("PROC MEANS DATA = sashelp.cars;RUN;", file = tempfile_path)

# upload file
sas_file_upload(local_path = tempfile_path, sas_path = paste0("~/", tempfile_basename))
}