Uploads a file to the remote SAS server.
See also
Other file management functions:
sas_file_copy(),
sas_file_download(),
sas_file_exists(),
sas_file_remove(),
sas_list()
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))
}
