Package: macro 0.1.6

macro: A Macro Language for 'R' Programs

A macro language for 'R' programs, which provides a macro facility similar to 'SAS®'. This package contains basic macro capabilities like defining macro variables, executing conditional logic, and defining macro functions.

Authors:David Bosak [aut, cre], Bill Huang [ctb], Duong Tran [ctb]

macro_0.1.6.tar.gz
macro_0.1.6.zip(r-4.7)macro_0.1.6.zip(r-4.6)macro_0.1.6.zip(r-4.5)
macro_0.1.6.tgz(r-4.6-any)macro_0.1.6.tgz(r-4.5-any)
macro_0.1.6.tar.gz(r-4.7-any)macro_0.1.6.tar.gz(r-4.6-any)
macro_0.1.6.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
macro/json (API)

# Install 'macro' in R:
install.packages('macro', repos = c('https://dbosak01.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/dbosak01/macro/issues

Pkgdown/docs site:https://macro.r-sassy.org

On CRAN:

Conda:

7.26 score 2 stars 1 packages 50 scripts 646 downloads 7 exports 14 dependencies

Last updated from:0fc332b2f4. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK257
source / vignettesOK228
linux-release-x86_64OK206
macos-release-arm64OK137
macos-oldrel-arm64OK89
windows-develOK95
windows-releaseOK84
windows-oldrelOK92
wasm-releaseOK109

Exports:msourcerunMSourcerunMSourceDebugsymclearsymgetsymputsymtable

Dependencies:clicommoncrayonfmtrgluelifecyclemagrittrpillarpkgconfigRcpprlangtibbleutf8vctrs

macro
Macro Concept | An R Macro Language | Macro Statements | Differences Between SAS Macro and R Macro | Available Functionality | SAS to R Macro Language Map | The msource() Function | Parameters | How to Use | Execute From the Console | Execute From a Script | Execute From a Keyboard Shortcut | Example Macro Program | Console Output | Viewer Output | Additional Features | Symbol Table Functions | Example Symtable Function | Debugging | Next Steps

Last update: 2025-11-18
Started: 2025-03-16

Example 3: Table
Generate a Demographics Table | Macro Driver Script | Template Table Program | Template Code Snippets | Generated Code | Result

Last update: 2025-11-18
Started: 2025-09-29

Macro Language Reference
Index | Macro Comments | Syntax | Details | Examples | Macro Variables | Basic Assignment | Quoted Assignment | Unquoted Assignment Errors | Variable Removal | Global Macro Assignment | Nested Assignment | Delayed Resolution | Advanced Assignment | Dynamic Variable Creation | Macro Conditionals | Simple Conditional | Nested Conditionals | Macro Include | Built-in Macro Functions | %sysfunc() | %symexist() | %symput() | %nrstr() | Macro Do Loops | User-Defined Macro Functions | Macro Line Continuation

Last update: 2025-11-18
Started: 2025-09-26

Frequently Asked Questions
Index | Content | Why did you create the macro package? | What capabilities does the macro package provide? | How does the macro package work? | Can I create macro functions and do loops? | Can I nest macro conditionals? | How does %include work? | What is the difference between symput() and %symput()? | Why are the debug line numbers off? | How can I use this package to generate code? | Why should I use this package for code generation?

Last update: 2025-11-17
Started: 2025-03-16

Example 2: Another Listing
Generate a Listing | Macro Driver Script | Template Listing Program | How To Run | Generated Code | Output Report

Last update: 2025-11-16
Started: 2025-03-16

Debugging
How to Debug a Macro | Sample Program | Debug Output | Errors | Error in Macro Syntax | Missing #%end | Extra #%end | Error in Generated Code | Debug to File | Symbolgen Option

Last update: 2025-11-16
Started: 2025-09-29

Symbol Table Functions
How to Use | Template Macro Program | Run #1 | Run #2 | Other Uses

Last update: 2025-11-16
Started: 2025-11-06

Example 1: Listing
Generate a Listing | Macro Driver Script | Template Listing Program | How To Run | Generated Code | Output Report

Last update: 2025-11-16
Started: 2025-03-16

Global Options
Echo Option | Auto Clear Option | Auto Save Option | Clearing Global Options

Last update: 2025-11-16
Started: 2025-11-06

Installation and Setup
Package Install | Addin Menu | Keyboard Shortcuts | Test Interactive Usage

Last update: 2025-11-16
Started: 2025-11-06