The goal of usemh is to …
You can install the development version of usemh
like so:
## Don't install this if you don't know how to do so.
Hopefully, it will generate all the boilerplate files for the MH submission of your R package.
library(usemh)
use_mh_method()
By default, it will open up the file methodshub.qmd
automatically (use
use_mh(open = FALSE)
otherwise). Under the hood, use_mh()
generates
all the boilerplate files, namely:
CITATION.cff
- Citation File Format- All the files for (my)Binder integration, e.g.
postBuild
,install.R
,apt.txt
, andruntime.txt
,install.R
, see the tutorial preparation guide on this. - Initialize a Quarto project (
_quarto.yml
) andmethodshub.qmd
to act as the “README” for the submission
In general, if the R package is already on CRAN, editing
methodshub.qmd
suffices. However, if your package has additional
system dependencies, you might need to edit apt.txt
to add the
additional ubuntu packages. Similarly, if the rendering of
methodshub.qmd
needs further R packages, add them in install.R
.
When submitting the R package to MH, please put methodshub.qmd
in the
“File” field of the submission form.
- For the initial
methodshub.qmd
, information is collected fromDESCRIPTION
. Don’t ask me / us the why question about those headings inmethodshub.qmd
for an existing CRAN package. - For
CITATION.cff
, information is collected frominst/CITATION
(If available, otherwise generated fromDESCRIPTION
). - This package is designed to make the boilerplate files affecting
neither the existing
README.md
nor the usualR CMD check
. All of boilerplate files added are tracked in.RBuildignore
. - Dig into the source code to study how to undo
usemh::use_mh_method()
.
To bootstrap a tutorial
use_mh_tutorial_template(title = "A Tutorial on doing everything with LLMs")
To add files for Binder compatibility
use_mh_tutorial_utils()