Learn R Programming

sasMap

Static code analysis for SAS scripts

  • Extract counts of proc and data steps
  • Summarise SAS files

Usage


library(sasMap)

sasPath <- system.file('examples/SAScode/Macros/fun2.SAS', package='sasMap')
summariseSASScript(sasPath)

Copy Link

Version

Install

install.packages('sasMap')

Monthly Downloads

32

Version

1.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Nic Crane

Last Published

August 18th, 2017

Functions in sasMap (1.0.0)

extractMacroCalls

Extract macro calls from a string of SAS code
extractMacroDefs

Extract macro definitions from a string of SAS code
removeAllComments

Remove single line comments from a character string containing SAS code
removeMultilineComments

Remove multiline comments from SAS code
splitIntoStatements

Split SAS code into statements
summariseSASScript

Summarise a SAS script
extractProcs

Extract procs from a vector of SAS code
loadSAS

Load SAS Code in
countDataSteps

Count number of data steps in a SAS file
countLines

Count lines in a SAS file
countProcSteps

Count number of proc steps in a SAS file
countStatements

Count statements in a SAS file
removeSingleLineComments

Remove single line comments from a vector of SAS statements
removeWhitespaceCharacters

Remove whitespace characters from SAS code