use_qrtdown_cli()
# Then from terminal:
# qrtdown build
# quarto previewInstall qrtdown CLI
Source: R/usethis.R
Installs the qrtdown command-line interface, allowing you to run qrtdown commands directly from the terminal instead of from R.
Usage
use_qrtdown_cli(path = NULL)Arguments
Value
Invisibly returns the path to the installed CLI script.
Details
After installation, you can use commands like:
qrtdown init qrtdown build qrtdown build --clean quarto preview qrtdown new article my-guide qrtdown deploy
Run qrtdown –help for full usage information.
The CLI requires the docopt package. Install it with install.packages(“docopt”) if not already installed.
Adding to PATH
If ~/.local/bin is not in your PATH, add this to your ~/.bashrc or ~/.zshrc:
export PATH="$HOME/.local/bin:$PATH"