{
  "_id": "6a1f2b7fb401979e73425569",
  "Package": "macro",
  "Type": "Package",
  "Title": "A Macro Language for 'R' Programs",
  "Version": "0.1.6",
  "Authors@R": "c(\nperson(\"David\", \"Bosak\", email = \"dbosak01@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Bill\", \"Huang\", email = \"Bill.Huang@Toastmasters.org.tw\", role = \"ctb\"),\nperson(\"Duong\", \"Tran\", email = \"trand000@aol.com\", role = c(\"ctb\"))\n)",
  "Description": "A macro language for 'R' programs, which provides a macro\nfacility similar to 'SAS®'.  This package contains basic macro\ncapabilities like defining macro variables, executing\nconditional logic, and defining macro functions.",
  "License": "CC0",
  "Encoding": "UTF-8",
  "URL": "https://macro.r-sassy.org, https://github.com/dbosak01/macro",
  "BugReports": "https://github.com/dbosak01/macro/issues",
  "Config/testthat/edition": "3",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Repository": "https://dbosak01.r-universe.dev",
  "Date/Publication": "2026-03-13 19:55:13 UTC",
  "RemoteUrl": "https://github.com/dbosak01/macro",
  "RemoteRef": "HEAD",
  "RemoteSha": "0fc332b2f49b08bbc4b0030bd129e0e202e4065f",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-15 10:20:44 UTC",
    "User": "root"
  },
  "Author": "David Bosak [aut, cre],\nBill Huang [ctb],\nDuong Tran [ctb]",
  "Maintainer": "David Bosak <dbosak01@gmail.com>",
  "MD5sum": "003aa5d156ecbd6a9bb38e4db2f03ad3",
  "_user": "dbosak01",
  "_type": "src",
  "_file": "macro_0.1.6.tar.gz",
  "_fileid": "3f824bc4f886d3d8141cee0e8c48313a773c40c3a3eaf92e2f5c7c14b3726fdc",
  "_filesize": 1320377,
  "_sha256": "3f824bc4f886d3d8141cee0e8c48313a773c40c3a3eaf92e2f5c7c14b3726fdc",
  "_created": "2026-05-15T10:20:44.000Z",
  "_published": "2026-06-02T19:14:07.363Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79151911990,
      "time": 137,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7014989442"
    },
    {
      "job": 79151912107,
      "time": 132,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7014987974"
    },
    {
      "job": 79151912194,
      "time": 134,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7014996245"
    },
    {
      "job": 79151911809,
      "time": 90,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7014993925"
    },
    {
      "job": 79151911453,
      "time": 176,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7014951521"
    },
    {
      "job": 79151910872,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7367449262"
    },
    {
      "job": 79151912234,
      "time": 98,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7014977922"
    },
    {
      "job": 79151912177,
      "time": 88,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7014975386"
    },
    {
      "job": 79151912247,
      "time": 86,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7014975056"
    }
  ],
  "_buildurl": "https://github.com/r-universe/dbosak01/actions/runs/25912635677",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/dbosak01/macro",
  "_commit": {
    "id": "0fc332b2f49b08bbc4b0030bd129e0e202e4065f",
    "author": "David J. Bosak <dbosak01@gmail.com>",
    "committer": "David J. Bosak <dbosak01@gmail.com>",
    "message": "Issues #100, #99, #97, #95\n",
    "time": 1773431713
  },
  "_maintainer": {
    "name": "David Bosak",
    "email": "dbosak01@gmail.com",
    "login": "dbosak01",
    "uuid": 41754982
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0",
      "role": "Depends"
    },
    {
      "package": "common",
      "role": "Depends"
    },
    {
      "package": "fmtr",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "crayon",
      "role": "Imports"
    },
    {
      "package": "sassy",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "rstudioapi",
      "role": "Suggests"
    }
  ],
  "_owner": "dbosak01",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-38",
      "n": 11
    },
    {
      "week": "2025-39",
      "n": 4
    },
    {
      "week": "2025-40",
      "n": 10
    },
    {
      "week": "2025-41",
      "n": 6
    },
    {
      "week": "2025-42",
      "n": 7
    },
    {
      "week": "2025-43",
      "n": 3
    },
    {
      "week": "2025-44",
      "n": 3
    },
    {
      "week": "2025-45",
      "n": 15
    },
    {
      "week": "2025-46",
      "n": 7
    },
    {
      "week": "2025-47",
      "n": 6
    },
    {
      "week": "2025-51",
      "n": 1
    },
    {
      "week": "2026-11",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.1.5",
      "date": "2025-11-22"
    }
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "dbosak01",
      "count": 82,
      "uuid": 41754982
    }
  ],
  "_userbio": {
    "uuid": 41754982,
    "type": "user",
    "name": "David J. Bosak",
    "description": "Chief Software Architect at Archytas Clinical Solutions and inventor of the sassy system of R packages."
  },
  "_downloads": {
    "count": 848,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/macro"
  },
  "_devurl": "https://github.com/dbosak01/macro",
  "_pkgdown": "https://macro.r-sassy.org",
  "_searchresults": 48,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/macro.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/dbosak01/macro",
  "_realowner": "dbosak01",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.5",
      "date": "2025-11-26"
    },
    {
      "version": "0.1.6",
      "date": "2026-03-14"
    }
  ],
  "_exports": [
    "msource",
    "runMSource",
    "runMSourceDebug",
    "symclear",
    "symget",
    "symput",
    "symtable"
  ],
  "_help": [
    {
      "page": "msource",
      "title": "Macro Source Function",
      "topics": [
        "msource"
      ]
    },
    {
      "page": "print.symtable",
      "title": "Print the Macro Symbol Table",
      "concept": [
        "fcat",
        "symtable"
      ],
      "topics": [
        "print.symtable"
      ]
    },
    {
      "page": "runMSource",
      "title": "Addin Function to Run msource()",
      "topics": [
        "runMSource"
      ]
    },
    {
      "page": "runMSourceDebug",
      "title": "Addin Function to Run msource() in Debug Mode",
      "topics": [
        "runMSourceDebug"
      ]
    },
    {
      "page": "symclear",
      "title": "Clear the Macro Symbol Table",
      "concept": [
        "symtable"
      ],
      "topics": [
        "symclear"
      ]
    },
    {
      "page": "symget",
      "title": "Get a Variable Value from the Macro Symbol Table",
      "concept": [
        "symtable"
      ],
      "topics": [
        "symget"
      ]
    },
    {
      "page": "symput",
      "title": "Assign a Variable in the Macro Symbol Table",
      "concept": [
        "symtable"
      ],
      "topics": [
        "symput"
      ]
    },
    {
      "page": "symtable",
      "title": "Examine the Macro Symbol Table",
      "concept": [
        "symtable"
      ],
      "topics": [
        "symtable"
      ]
    }
  ],
  "_pkglogo": "https://github.com/dbosak01/macro/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/dbosak01/macro/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "common",
    "crayon",
    "fmtr",
    "glue",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "Rcpp",
    "rlang",
    "tibble",
    "utf8",
    "vctrs"
  ],
  "_vignettes": [
    {
      "source": "macro-debug.Rmd",
      "filename": "macro-debug.html",
      "title": "Debugging",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2025-09-29 21:36:15",
      "modified": "2025-11-16 18:14:48",
      "commits": 9
    },
    {
      "source": "macro-example1.Rmd",
      "filename": "macro-example1.html",
      "title": "Example 1: Listing",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Generate a Listing",
        "Macro Driver Script",
        "Template Listing Program",
        "How To Run",
        "Generated Code",
        "Output Report"
      ],
      "created": "2025-03-16 04:41:24",
      "modified": "2025-11-16 02:26:12",
      "commits": 11
    },
    {
      "source": "macro-example2.Rmd",
      "filename": "macro-example2.html",
      "title": "Example 2: Another Listing",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Generate a Listing",
        "Macro Driver Script",
        "Template Listing Program",
        "How To Run",
        "Generated Code",
        "Output Report"
      ],
      "created": "2025-03-16 04:41:24",
      "modified": "2025-11-16 23:56:45",
      "commits": 14
    },
    {
      "source": "macro-example3.Rmd",
      "filename": "macro-example3.html",
      "title": "Example 3: Table",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Generate a Demographics Table",
        "Macro Driver Script",
        "Template Table Program",
        "Template Code Snippets",
        "Generated Code",
        "Result"
      ],
      "created": "2025-09-29 21:36:15",
      "modified": "2025-11-18 10:55:29",
      "commits": 14
    },
    {
      "source": "macro-faq.Rmd",
      "filename": "macro-faq.html",
      "title": "Frequently Asked Questions",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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?"
      ],
      "created": "2025-03-16 04:41:24",
      "modified": "2025-11-17 05:39:44",
      "commits": 9
    },
    {
      "source": "macro-globals.Rmd",
      "filename": "macro-globals.html",
      "title": "Global Options",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Echo Option",
        "Auto Clear Option",
        "Auto Save Option",
        "Clearing Global Options"
      ],
      "created": "2025-11-06 17:55:13",
      "modified": "2025-11-16 02:26:12",
      "commits": 4
    },
    {
      "source": "macro-setup.Rmd",
      "filename": "macro-setup.html",
      "title": "Installation and Setup",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Package Install",
        "Addin Menu",
        "Keyboard Shortcuts",
        "Test Interactive Usage"
      ],
      "created": "2025-11-06 17:55:13",
      "modified": "2025-11-16 02:26:12",
      "commits": 2
    },
    {
      "source": "macro.Rmd",
      "filename": "macro.html",
      "title": "macro",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2025-03-16 04:41:24",
      "modified": "2025-11-18 16:12:03",
      "commits": 21
    },
    {
      "source": "macro-language.Rmd",
      "filename": "macro-language.html",
      "title": "Macro Language Reference",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2025-09-26 23:55:27",
      "modified": "2025-11-18 10:55:29",
      "commits": 22
    },
    {
      "source": "macro-symtable.Rmd",
      "filename": "macro-symtable.html",
      "title": "Symbol Table Functions",
      "engine": "knitr::rmarkdown",
      "headings": [
        "How to Use",
        "Template Macro Program",
        "Run #1",
        "Run #2",
        "Other Uses"
      ],
      "created": "2025-11-06 17:55:13",
      "modified": "2025-11-16 18:14:48",
      "commits": 4
    }
  ],
  "_score": 7.237543738142874,
  "_indexed": true,
  "_nocasepkg": "macro",
  "_universes": [
    "dbosak01"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.6",
      "date": "2026-05-15T10:22:57.000Z",
      "distro": "noble",
      "commit": "0fc332b2f49b08bbc4b0030bd129e0e202e4065f",
      "fileid": "b08e064e8cafd470672ada04452bb04d7c5547458624eafa9c6cdc7eafbd4665",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dbosak01/actions/runs/25912635677"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.6",
      "date": "2026-05-15T10:22:53.000Z",
      "distro": "noble",
      "commit": "0fc332b2f49b08bbc4b0030bd129e0e202e4065f",
      "fileid": "9a2ec8c3b35209d84d480b901678e8dbbbeac66c9c0d0b7c9cef711973a51b2c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dbosak01/actions/runs/25912635677"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.6",
      "date": "2026-05-15T10:23:23.000Z",
      "commit": "0fc332b2f49b08bbc4b0030bd129e0e202e4065f",
      "fileid": "8967af578a86502fd3f411cf93c0ba5de3550af7666d979193387b52cfac4b57",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dbosak01/actions/runs/25912635677"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.6",
      "date": "2026-05-15T10:23:22.000Z",
      "commit": "0fc332b2f49b08bbc4b0030bd129e0e202e4065f",
      "fileid": "8794fd508e95357d9125ea6f6c23cebb66c529f7cc615db125c7cf94b743b165",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dbosak01/actions/runs/25912635677"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.6",
      "date": "2026-05-15T10:22:09.000Z",
      "commit": "0fc332b2f49b08bbc4b0030bd129e0e202e4065f",
      "fileid": "23b3ff42a899a995b0b6ab46c1b6183fa86ab6d97b8340a2062ad177f6c1ca11",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dbosak01/actions/runs/25912635677"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.6",
      "date": "2026-05-15T10:21:58.000Z",
      "commit": "0fc332b2f49b08bbc4b0030bd129e0e202e4065f",
      "fileid": "03b1abcf89f62ded773ff390f4e493d2e9911bf6bb0633ab524b60d98d2d8791",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dbosak01/actions/runs/25912635677"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.6",
      "date": "2026-05-15T10:22:00.000Z",
      "commit": "0fc332b2f49b08bbc4b0030bd129e0e202e4065f",
      "fileid": "ff78e9ac9d0fe02173c87f19f08a97f49fcd3beda8148537cce06016f73cf87b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dbosak01/actions/runs/25912635677"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.6",
      "date": "2026-06-02T19:13:50.000Z",
      "commit": "0fc332b2f49b08bbc4b0030bd129e0e202e4065f",
      "fileid": "a7917430a7173a922f84a3aa49907f7a8c5932d73db532c83317fe456c8443af",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dbosak01/actions/runs/25912635677"
    }
  ]
}