DS_translate: DataStep Wrapper

View source: R/datasteps_translators.R

DS_translateR Documentation

DataStep Wrapper

Description

Wraps a simple DataSetp code (not DS2) to be run through SWAT

Usage

DS_translate(
  in_file = NULL,
  out_file = "dmcas_scorecode.R",
  zip = TRUE,
  hostname = NULL,
  in_caslib,
  in_castable,
  out_caslib,
  out_castable
)

Arguments

in_file

Path to zip/sas file with the score code.

out_file

Path to the translated .R code file.

zip

Boolean, if the score code is inside a zip file. Default to TRUE. It will look for dmcas_scorecode.sas file inside the zip.

hostname

NULL by default, extracts the server name from dmcas_scorecode.sas file.

in_caslib

caslib name of the input table

in_castable

input table name

out_caslib

caslib name of the output table

out_castable

output table name

Value

List object with the DS code, Rscore code, out castable, out caslib and the written file path.

Examples

DS_translate("filepath.zip")


sassoftware/sas-scoring-translator-r documentation built on Dec. 7, 2023, 11:55 p.m.