Skip to contents

Checks if a file exists on the remote SAS server. Is analogous to file.exists(), but for the remote SAS server.

Usage

sas_file_exists(path)

Arguments

path

string; Path of file on remote SAS server.

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")

# check if file exists on SAS
sas_file_exists("~/script.sas")
} # }