Skip to content

gesistsa/usemh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usemh

The goal of usemh is to …

Installation

You can install the development version of usemh like so:

## Don't install this if you don't know how to do so.

Method

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:

  1. CITATION.cff - Citation File Format
  2. All the files for (my)Binder integration, e.g. postBuild, install.R, apt.txt, and runtime.txt, install.R, see the tutorial preparation guide on this.
  3. Initialize a Quarto project (_quarto.yml) and methodshub.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.

Additional information

  • For the initial methodshub.qmd, information is collected from DESCRIPTION. Don’t ask me / us the why question about those headings in methodshub.qmd for an existing CRAN package.
  • For CITATION.cff, information is collected from inst/CITATION (If available, otherwise generated from DESCRIPTION).
  • This package is designed to make the boilerplate files affecting neither the existing README.md nor the usual R 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().

Tutorial

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()

About

generate one more readme for MH

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published