extractMacroCalls: Extract macro calls from a string of SAS code

Description Usage Arguments Value Examples

View source: R/extract.R

Description

Extract macro calls from a string of SAS code

Usage

1
2
extractMacroCalls(sasCode, ignoreList = c("macro", "mend", "global", "let",
  "put", "if", "do", "end", "else"))

Arguments

sasCode

SAS code

ignoreList

Macro calls to ignore

Value

Vector of macro calls

Examples

1
2
3
sasFile <- system.file('examples/SAScode/Macros/Util1.SAS', package='sasMap')
sasCode <- loadSAS(sasFile)
extractMacroCalls(sasCode)

sasMap documentation built on Aug. 18, 2017, 5:03 p.m.