Description
Build command-line apps in R using the Rapp package. Use when creating a CLI tool in R, adding argument parsing to an R script, turning an R script into a command-line app, shipping CLIs in an R package, or using Rapp (the alternative Rscript front-end). Also use for shebang scripts, exec/ directory in R packages, or subcommand-based R tools.
Installation
There are a number of ways to install skills. We made {ally}, an R package that simplifies the process. Learn more
Install {pak}:
install.packages("pak")
Then install {ally}:
pak::pak("rfortherestofus/ally")
You only need to do this once per computer.
After you've installed the {ally} package, choose whether you want to install the skill in this project or in all of your projects, then run the command.
ally::install_skill("https://github.com/posit-dev/skills/blob/main/r-lib/r-cli-app/SKILL.md")
This puts the skill in locations that all agents can read, inside this project, so anyone you're working with on the project can use it.
ally::install_skill("https://github.com/posit-dev/skills/blob/main/r-lib/r-cli-app/SKILL.md", scope = "user")
This puts the skill in locations that all agents can read, in your home folder, so every project you work on can use it.