adodown
Utilities for streamlining Stata package development
For developers, adodown
offers workflow commands that automate manual tasks at each stage of development. At project’s start, adodown
creates the necessary scaffolding for the package (e.g., folders, pkg
file, etc). For each package command, it uses templates to create necessary files (i.e., ado
, documentation, unit test) and adds appropriate entries in the pkg
file. For documentation, it allows developers draft in plain Markdown while creating standard help files in SMCL. And for publication, adodown collects the required files, puts them in proper format, and prepares a zip
file for SSC submission.
Also, adodown
automatically deploys a package documentation website. For users, this provides an easy way to discover packages, to understand what they do, and to explore how commands work–all without installing the package. For developers, this provides packages with a welcome web presence and offers a home for additional documentation (e.g., how-to guides, technical notes, FAQs), and keeps HTML documentation up to date with SMCL documentation through continuous deployment via GitHub Actions.
Commands
Command | Description |
---|---|
ad_command | Add new or remove existing command to the package |
ad_publish | Run all tasks intended to be done before publishing |
ad_setup | Create up a new adodown -styled package |
ad_sthlp | Convert the mdhlp -files to SMCL format and save in sthlp -files |
ad_update | Update meta information stored in the pkg -file. |
adodown | Package command with utilities for the rest of the package |
Installation
To install the latest published version of the package:
* install the package from the SSC package repositoryssc install adodown
To update the package:
for and apply any available updates
* check ado update adodown, update
Development version
The version of adodown
on SSC corresponds to the code in the main
branch of the package’s GitHub repository.
To get a bug fix or test bleeding-edge features, you can install code from other branches of the repository. To install the version in a particular branch:
set tag to be the name of the target branch
* for example, the development branch, which contains code for the next release
* local tag "dev"
* download the code from that GitHub branch
* install the package///
net install adodown, "https://raw.githubusercontent.com/lsms-worldbank/adodown/`tag'/src") replace from(
Previous versions
If you need to install a previously releases version of adodown
, then you can use the following method. This can be useful, for example, during reproducibility verifications. To install the version in a particular release, set the local tag
to the target release you want to install in this code:
set the tag to the name of the target release
* for example v1.0, say, if the current version were v2.0
* local tag "v1.0"
* download the code from that GitHub release
* install the package///
net install adodown, "https://raw.githubusercontent.com/lsms-worldbank/adodown/`tag'/src") replace from(
Learn more
To learn more about the package:
- Consult the reference documentation
- Read how-to articles
Contact
LSMS Team, World Bank lsms@worldbank.org