pass_code_to_sas: Pass code from R to SAS

View source: R/transfer.R

pass_code_to_sasR Documentation

Pass code from R to SAS

Description

pass_code_to_sas will pass SAS code (typed in R and/or list of SAS files) from R to an installed local version of SAS.

Usage

pass_code_to_sas(
  sas_file_list = NULL,
  inputstring = NULL,
  sas_path = "C:/Program Files/SASHome/SASFoundation/9.4/sas.exe",
  config_file = NULL
)

Arguments

sas_file_list

A list of strings defining the location and name of SAS code files.

inputstring

A string vector of SAS code.

sas_path

File path to SAS 9.4 executable; default set to a rough standard of: C:/Program Files/SASHome/SASFoundation/9.4/sas.exe.

config_file

File path for SAS 9.4 configuration file (e.g. C:/.../SAS9.4_Prod/SASV9.CFG).

Examples

## Not run: 
sas_code_string <- 'DATA TEMP; do i = 1 to 10; age = i+1; output; end; run;'
pass_code_to_sas(inputstring = sas_code_string, sas_path = "C:/Program Files/SASHome/SASFoundation/9.4/sas.exe")

## End(Not run)

al-obrien/farrago documentation built on April 14, 2023, 6:20 p.m.