Note that biocthis is not a Bioconductor-core package and as such it is not a Bioconductor official package. It was made by and for Leonardo Collado-Torres so he could more easily maintain and create Bioconductor packages as listed at lcolladotor.github.io/pkgs/. Hopefully biocthis will be helpful for you too.

1 Basics

1.1 Install biocthis

R is an open-source statistical environment which can be easily modified to enhance its functionality via packages. biocthis is a R package available via the Bioconductor repository for packages. R can be installed on any operating system from CRAN after which you can install biocthis by using the following commands in your R session:

if (!requireNamespace("BiocManager", quietly = TRUE)) {
    install.packages("BiocManager")
}

BiocManager::install("biocthis")

## Check that you have a valid Bioconductor installation
BiocManager::valid()

You can install the development version from GitHub with:

BiocManager::install("lcolladotor/biocthis")

1.2 Required knowledge

biocthis is based on many other packages and in particular in those that have implemented the infrastructure needed for creating tidyverse-style R packages. That is usethis (Wickham, Bryan, Barrett et al., 2024), devtools (Wickham, Hester, Chang et al., 2022), and testthat (Wickham, 2011). It will also be helpful if you are familiar with styler (Müller and Walthert, 2024). Finally, we highly recommend that you run biocthis within RStudio Desktop.

If you are asking yourself the question “Where do I start using Bioconductor?” you might be interested in this blog post.

1.3 Asking for help

As package developers, we try to explain clearly how to use our packages and in which order to use the functions. But R and Bioconductor have a steep learning curve so it is critical to learn where to ask for help. The blog post quoted above mentions some but we would like to highlight the Bioconductor support site as the main resource for getting help: remember to use the biocthis tag and check the older posts. Other alternatives are available such as creating GitHub issues and tweeting. However, please note that if you want to receive help you should adhere to the posting guidelines. It is particularly critical that you provide a small reproducible example and your session information so package developers can track down the source of the error.

1.4 Citing biocthis

We hope that biocthis will be useful for your work. Please use the following information to cite the package and the overall approach. Thank you!

## Citation info
citation("biocthis")
#> To cite package 'biocthis' in publications use:
#> 
#>   Collado-Torres L (2024). _Automate package and project setup for Bioconductor packages_.
#>   doi:10.18129/B9.bioc.biocthis <https://doi.org/10.18129/B9.bioc.biocthis>,
#>   https://github.com/lcolladotor/biocthisbiocthis - R package version 1.14.0,
#>   <http://www.bioconductor.org/packages/biocthis>.
#> 
#>   Collado-Torres L (2024). "Automate package and project setup for Bioconductor packages." _bioRxiv_.
#>   doi:10.1101/TODO <https://doi.org/10.1101/TODO>, <https://www.biorxiv.org/content/10.1101/TODO>.
#> 
#> To see these entries in BibTeX format, use 'print(<citation>, bibtex=TRUE)', 'toBibtex(.)', or set
#> 'options(citation.bibtex.max=999)'.

2 Quick start to using to biocthis

biocthis is an R package that expands usethis with Bioconductor-friendly templates. These templates will help you quickly create an R package that either has Bioconductor dependencies or that you are thinking of submitting to Bioconductor one day. biocthis has functions that can also enhance your current R packages that either are already distributed by Bioconductor or have Bioconductor dependencies. biocthis also includes a Bioconductor-friendly GitHub Actions workflow for your R package(s). To use the functions in this package, you need to load it as shown below.

library("biocthis")

## Load other R packages used in this vignette
library("usethis")
library("styler")

2.1 Using biocthis in your R package

If you haven’t made an R package yet, you can do so using usethis. That is, utilize usethis::create_package() with the package name of your choice. If you are using RStudio Desktop this function will open a new RStudio window and open R in the correct location. Otherwise, you might need to use setwd() to change directories.

In this vignette we will create an example package called biocthispkg on a temporary directory and work in this directory in order to illustrate how the functions work. In a real world scenario, you would be working inside your R package and would not run biocthis_example_pkg().

## Create an example package for illustrative purposes.
## Note: you do not need to run this for your own package!
pkgdir <- biocthis_example_pkg("biocthispkg", use_git = TRUE)
#> ✔ Creating '/tmp/RtmpCIsqJ1/biocthispkg/'
#> ✔ Setting active project to '/tmp/RtmpCIsqJ1/biocthispkg'
#> ✔ Creating 'R/'
#> ✔ Writing 'DESCRIPTION'
#> Package: biocthispkg
#> Title: What the Package Does (One Line, Title Case)
#> Version: 0.0.0.9000
#> Authors@R (parsed):
#>     * First Last <first.last@example.com> [aut, cre] (YOUR-ORCID-ID)
#> Description: What the package does (one paragraph).
#> License: `use_mit_license()`, `use_gpl3_license()` or friends to pick a
#>     license
#> Encoding: UTF-8
#> Roxygen: list(markdown = TRUE)
#> RoxygenNote: 7.3.1
#> ✔ Writing 'NAMESPACE'
#> ✔ Setting active project to '<no active project>'
#> ✔ Setting active project to '/tmp/RtmpCIsqJ1/biocthispkg'
#> ✔ Initialising Git repo
#> ✔ Adding '.Rproj.user', '.Rhistory', '.Rdata', '.httr-oauth', '.DS_Store', '.quarto' to '.gitignore'

Once you have created a package, you can use use_bioc_pkg_templates() to create a set of scripts in the dev (developer) directory.

## Create the bioc templates
biocthis::use_bioc_pkg_templates()
#> ✔ Creating 'dev/'
#> ✔ Adding '^dev$' to '.Rbuildignore'
#> ✔ Writing 'dev/01_create_pkg.R'
#> ✔ Writing 'dev/02_git_github_setup.R'
#> ✔ Writing 'dev/03_core_files.R'
#> ✔ Writing 'dev/04_update.R'

If you run use_bioc_pkg_templates() inside RStudio Desktop, then all the scripts will open on your RStudio window. Each script contains comments that will guide you on the steps you need to do to create your Bioconductor-friendly R package. These scripts are:

  • 01_create_pkg.R
    • Helps you install R packages needed for developing R packages with these template scripts.
    • Helps you check if the R package name you chose is available.
    • Includes the steps up to running use_bioc_pkg_templates().
  • 02_git_github_setup.R
    • Ignores the *.Rproj files to comply with Bioconductor’s requirements
    • Initializes a git repository
    • Creates the corresponding GitHub repository
  • 03_core_files.R
    • Creates Bioconductor-friendly README.Rmd and NEWS.md files
    • Creates Bioconductor-friendly GitHub templates for issues, feature requests, and support requests
    • Uses the tidyverse-style GitHub contributing and code of conduct files
    • Creates a template Bioconductor-friendly CITATION file
    • Adds several badges to the README.Rmd file 1 You might want to use badger too, which has badges for Bioconductor download statistics. Some of the badges are only tailored for Bioconductor software packages, so you’ll have to edit them for annotation, experiment and workflow packages.
    • Sets up unit tests using testthat (Wickham, 2011)
    • Adds a Bioconductor-friendly GitHub Actions workflow
    • Adds a pkgdown/extra.css file for configuring pkgdown (Wickham, Hesselberth, and Salmon, 2024) documentation websites with Bioconductor’s official colors
    • Deploys an initial documentation website using pkgdown (Wickham, Hesselberth, and Salmon, 2024)
  • 04_update.R
    • Automatically styles the R code in your package using styler (Müller and Walthert, 2024)
    • Update the documentation file using devtools (Wickham, Hester, Chang et al., 2022)

Many of these steps are powered by usethis (Wickham, Bryan, Barrett et al., 2024) with some of them utilizing biocthis (Collado-Torres, 2024).

3 biocthis functions overview

The dev scripts use the different functions provided by biocthis in the suggested order. However, below we give a brief overview of what they do.

3.1 use_bioc_badges()

Creates several Bioconductor badges for software packages (you will need to edit them for experiment data, annotation, workflow, or book packages) on your README files.

## Create some Bioconductor software package badges on your README files
biocthis::use_bioc_badges()
#> ✖ Can't find a README for the current project.
#>   See `usethis::use_readme_rmd()` for help creating this file.
#>   Badge link can only be printed to screen.
#> • Copy and paste the following lines into 'README':
#>   <!-- badges: start -->
#>   [![Bioc release status](http://www.bioconductor.org/shields/build/release/bioc/biocthispkg.svg)](https://bioconductor.org/checkResults/release/bioc-LATEST/biocthispkg)
#>   <!-- badges: end -->
#> ✖ Can't find a README for the current project.
#>   See `usethis::use_readme_rmd()` for help creating this file.
#>   Badge link can only be printed to screen.
#> • Copy and paste the following lines into 'README':
#>   <!-- badges: start -->
#>   [![Bioc devel status](http://www.bioconductor.org/shields/build/devel/bioc/biocthispkg.svg)](https://bioconductor.org/checkResults/devel/bioc-LATEST/biocthispkg)
#>   <!-- badges: end -->
#> ✖ Can't find a README for the current project.
#>   See `usethis::use_readme_rmd()` for help creating this file.
#>   Badge link can only be printed to screen.
#> • Copy and paste the following lines into 'README':
#>   <!-- badges: start -->
#>   [![Bioc downloads rank](https://bioconductor.org/shields/downloads/release/biocthispkg.svg)](http://bioconductor.org/packages/stats/bioc/biocthispkg/)
#>   <!-- badges: end -->
#> ✖ Can't find a README for the current project.
#>   See `usethis::use_readme_rmd()` for help creating this file.
#>   Badge link can only be printed to screen.
#> • Copy and paste the following lines into 'README':
#>   <!-- badges: start -->
#>   [![Bioc support](https://bioconductor.org/shields/posts/biocthispkg.svg)](https://support.bioconductor.org/tag/biocthispkg)
#>   <!-- badges: end -->
#> ✖ Can't find a README for the current project.
#>   See `usethis::use_readme_rmd()` for help creating this file.
#>   Badge link can only be printed to screen.
#> • Copy and paste the following lines into 'README':
#>   <!-- badges: start -->
#>   [![Bioc history](https://bioconductor.org/shields/years-in-bioc/biocthispkg.svg)](https://bioconductor.org/packages/release/bioc/html/biocthispkg.html#since)
#>   <!-- badges: end -->
#> ✖ Can't find a README for the current project.
#>   See `usethis::use_readme_rmd()` for help creating this file.
#>   Badge link can only be printed to screen.
#> • Copy and paste the following lines into 'README':
#>   <!-- badges: start -->
#>   [![Bioc last commit](https://bioconductor.org/shields/lastcommit/devel/bioc/biocthispkg.svg)](http://bioconductor.org/checkResults/devel/bioc-LATEST/biocthispkg/)
#>   <!-- badges: end -->
#> ✖ Can't find a README for the current project.
#>   See `usethis::use_readme_rmd()` for help creating this file.
#>   Badge link can only be printed to screen.
#> • Copy and paste the following lines into 'README':
#>   <!-- badges: start -->
#>   [![Bioc dependencies](https://bioconductor.org/shields/dependencies/release/biocthispkg.svg)](https://bioconductor.org/packages/release/bioc/html/biocthispkg.html#since)
#>   <!-- badges: end -->

This function was contributed by Milan Malfait (@milanmlft) at pull request 35.

3.2 bioc_style()

bioc_style() helps you automatically apply a coding style to your R package files using styler (Müller and Walthert, 2024) that is based on the tidyverse coding style guide but modified to make it more similar to the Bioconductor coding style guide.

## Automatically style the example package
styler::style_pkg(pkgdir, transformers = biocthis::bioc_style())
#> ────────────────────────────────────────
#> Status   Count   Legend 
#> ✔    0   File unchanged.
#> ℹ    0   File changed.
#> ✖    0   Styling threw an error.
#> ────────────────────────────────────────

3.3 use_bioc_citation()

use_bioc_citation() creates an R package CITATION file at inst/CITATION that is pre-populated with information you might want to use for your (future) Bioconductor package such as the Bioconductor DOIs and reference a journal article describing your package (that you might consider submitting to bioRxiv as a pre-print first). Alternatively, use usethis::use_citation().

## Create a template CITATION file that is Bioconductor-friendly
biocthis::use_bioc_citation()
#> ✔ Creating 'inst/'
#> ✔ Writing 'inst/CITATION'
#> • Edit 'inst/CITATION'

3.4 use_bioc_description()

use_bioc_description() creates an R package DESCRIPTION file that is pre-populated with information you might want to use for your (future) Bioconductor package such as links to the Bioconductor Support Website and biocViews. You will still need to manually edit the file. Alternatively, use usethis::use_description().

## Create a template DESCRIPTION file that is Bioconductor-friendly
biocthis::use_bioc_description()
#> ✔ Leaving 'DESCRIPTION' unchanged
#> Package: biocthispkg
#> Title: What the Package Does (One Line, Title Case)
#> Version: 0.99.0
#> Date: 2024-04-30
#> Authors@R (parsed):
#>     * First Last <first.last@example.com> [aut, cre] (YOUR-ORCID-ID)
#> Description: What the package does (one paragraph).
#> License: Artistic-2.0
#> URL:
#> BugReports: https://support.bioconductor.org/tag/biocthispkg
#> biocViews: Software
#> Encoding: UTF-8
#> Roxygen: list(markdown = TRUE)
#> RoxygenNote: 7.3.1

3.5 use_bioc_feature_request_template()

This function is related to use_bioc_issue_template(), as it creates a GitHub issue template file specifically tailored for feature requests. It is pre-populated with information you might want to users to provide when giving this type of feedback.

## Create a GitHub template for feature requests that is Bioconductor-friendly
biocthis::use_bioc_feature_request_template()
#> ✔ Creating '.github/'
#> ✔ Adding '^\\.github$' to '.Rbuildignore'
#> ✔ Adding '*.html' to '.github/.gitignore'
#> ✔ Creating '.github/ISSUE_TEMPLATE/'
#> ✔ Writing '.github/ISSUE_TEMPLATE/feature_request_template.md'

This function was added after a related contribution by Marcel Ramos (@LiNk-NY) at pull request 33.

3.6 use_bioc_github_action()

3.6.1 Getting started

use_bioc_github_action() creates a GitHub Actions (GHA) workflow file that is configured to be Bioconductor-friendly. Alternatively, use usethis::use_github_action() for the general GitHub Actions workflow maintained by r-lib/actions. If this is your first time seeing the words GitHub Actions, we highly recommend that you watch Jim Hester’s rstudio::conf(2020) talk on this subject. Here is how you can add this GHA workflow to your R package:

## Create a GitHub Actions workflow that is Bioconductor-friendly
biocthis::use_bioc_github_action()
#> ✔ Creating '.github/workflows/'
#> ✔ Writing '.github/workflows/check-bioc.yml'

3.6.2 Main GHA workflow features

This GitHub Actions (GHA) workflow is based on r-lib/actions//examples/check-standard.yaml and others. The goal is to provide on demand R CMD checks on Linux, macOS and Windows using a similar setup to Bioconductor-devel and release branches. Some key features that make this GHA workflow Bioconductor-friendly are:

  • It runs R CMD check on the same platforms (Linux, macOS and Windows) that Bioconductor supports.
  • It runs BiocCheck::BiocCheck() on all these platforms, unlike the Bioconductor nightly builds. BiocCheck is complementary to R CMD check and can help you improve your R package.
  • It uses the Bioconductor devel and release dockers to test your package on Linux. Since all system dependencies required by Bioconductor packages are already included in these docker images, it’s unlikely that you’ll need to fiddle with Linux system dependencies. The information on the docker image is then used for configuring the macOS and Windows tests.

3.6.3 Additional features

Furthermore, the use_bioc_github_action() GHA workflow provides the following features:

  • It runs covr (Hester, 2023) unless disabled by the environment variable run_covr (see the first few lines of the workflow).
  • It automatically deploys a documentation website using pkgdown (Wickham, Hesselberth, and Salmon, 2024) unless disabled by the environment variable run_pkgdown (see the first few lines of the workflow). With use_bioc_pkgdown_css() you can also create the pkgdown/extra.css file that will configure your pkgdown (Wickham, Hesselberth, and Salmon, 2024) documentation website with Bioconductor’s official colors.
  • It displays the information from testthat (Wickham, 2011) unless disabled by the environment variable has_testthat (see the first few lines of the workflow). Similarly, has_RUnit controls whether you want to run the RUnit tests described in the Bioconductor unit testing guidelines.
  • It caches the R packages and re-uses them for future tests except if you use the keyword /nocache in your commit message. Using /nocache can be helpful for debugging purposes. The caches are specific to the platform, the R version, and the Bioconductor version 2 In some situations, you might want to change the cache_version environment variable to force GHA to use new caches.. These caches help you speed up your checks and are updated after a successful build.
  • The machines provided by GitHub have 7GB of RAM, 2 cores and 14 GB of disk as noted in their help pages. It’s free for open source projects, but you can also pay to use it on private repositories as explained in their features website.

3.6.4 Configure options

To help you set some of these configuration environment variables in the GHA workflow, use_bioc_github_action() has a few arguments that are used to update a template and customize it for your particular repository. Several of the arguments in use_bioc_github_action() use base::getOption(), which enables you to edit your R profile file with usethis::edit_r_profile() and add lines such as the ones mentioned in the code below.

## Open your .Rprofile file with usethis::edit_r_profile()

## For biocthis
options("biocthis.pkgdown" = TRUE)
options("biocthis.testthat" = TRUE)

3.6.5 Automatically scheduled tests

You could also edit the resulting GHA workflow to run automatically every few days (for example, every Monday) by adding a cron line as described in the official GHA documentation. This could of interest to you in some situations, though you should also be aware that it will use your GHA compute time that can have limits depending on your GitHub account and repository settings. If you are setting up a cron scheduled job, you might find crontab.guru useful.

Ultimately, there are many things you can do with GHA and you might want to use workflow as the basis for building bookdown or rmarkdown websites, or even docker images. Some examples are:

3.6.6 Notes about GHA workflows

Using a GitHub Actions workflow with Bioconductor-devel (R-devel six months in the year), regardless of which GHA workflow you use specifically, will expose you to issues with installing R packages in the latest versions of Bioconductor, CRAN, GitHub and elsewhere. At r-lib/actions#where-to-find-help you can find a list of steps you can take to get help for R GHA workflows. In the end, you might have to ask for help in:

  • developer-oriented mailing lists,
  • GitHub repositories for the packages you have issues installing them with,
  • GitHub Actions repositories, and elsewhere.

That is, the GHA workflow provided by biocthis can break depending on changes upstream of it. In particular, it can stop working:

  • just prior to a new R release (unless r-lib/actions supports R alpha releases),
  • if the required Bioconductor docker image is not available (for example, due to issues building these images based on dependencies on rocker and other upstream tools) 3 See for example rocker-versioned2 issue 50. .

We highly recommend watching any developments as they happen at actions since the r-lib team does an excellent job keeping their GHA workflows updated. You can do so by subscribing to the RSS atom feed for commits in their repository processed through RSS FeedBurner that you can subscribe to by email.

If you are interested in learning more details about how this GHA workflow came to be, check the biocthis developer notes vignette.

3.7 use_bioc_issue_template()

use_bioc_issue_template() creates a GitHub issue template file that is pre-populated with information you might want to use for your (future) Bioconductor package such as links to the Bioconductor Support Website and examples of the information you can ask users to provide that will make it easier for you to help your users. Alternatively, use usethis::use_tidy_issue_template().

## Create a GitHub issue template file that is Bioconductor-friendly
biocthis::use_bioc_issue_template()
#> ✔ Writing '.github/ISSUE_TEMPLATE/issue_template.md'

This function was greatly modified in a contribution by Marcel Ramos (@LiNk-NY) at pull request 33

3.8 use_bioc_news_md()

use_bioc_news_md() creates a NEWS.md template file that is pre-populated with information you might want to use for your (future) Bioconductor package. Alternatively, use usethis::use_news_md().

## Create a template NEWS.md file that is Bioconductor-friendly
biocthis::use_bioc_news_md()
#> ✔ Writing 'NEWS.md'

3.9 use_bioc_pkg_templates()

This function was already described in detail in the previous main section.

3.10 use_bioc_pkgdown_css()

use_bioc_pkgdown_css() creates the pkgdown/extra.css file that configures your pkgdown (Wickham, Hesselberth, and Salmon, 2024) documentation website with Bioconductor’s official colors.

## Create the pkgdown/extra.css file to configure pkgdown with
## Bioconductor's official colors
biocthis::use_bioc_pkgdown_css()
#> ✔ Creating 'pkgdown/'
#> ✔ Writing 'pkgdown/extra.css'

This function was created after issue 34 contributed by Kevin Rue-Albrecht @kevinrue.

3.11 use_bioc_readme_rmd()

use_bioc_readme_rmd() creates a README.Rmd template file that is pre-populated with information you might want to use for your (future) Bioconductor package such as Bioconductor’s installation instructions, how to cite your package and links to the development tools you used. Alternatively, use usethis::use_readme_rmd().

## Create a template README.Rmd file that is Bioconductor-friendly
biocthis::use_bioc_readme_rmd()
#> ✔ Writing 'README.Rmd'
#> ✔ Adding '^README\\.Rmd$' to '.Rbuildignore'
#> ✔ Writing '.git/hooks/pre-commit'

3.12 use_bioc_support()

use_bioc_support() creates a template GitHub support template file that is pre-populated with information you might want to use for your (future) Bioconductor package such where to ask for help including the Bioconductor Support website. Alternatively, use usethis::use_tidy_support().

## Create a template GitHub support file that is Bioconductor-friendly
biocthis::use_bioc_support()
#> ✔ Writing '.github/SUPPORT.md'

3.13 use_bioc_vignette()

use_bioc_vignette() creates a template vignette file that is pre-populated with information you might want to use for your (future) Bioconductor package. This template includes information on how to cite other packages using RefManageR, styling your vignette with BiocStyle, instructions on how to install your package from Bioconductor, where to ask for help, information a user might need to know before they use your package, as well as the reproducibility information on how the vignette was made powered by sessioninfo. You will need to spend a significant amount of time editing this vignette as you develop your R package. Alternatively, use usethis::use_vignette().

## Create a template vignette file that is Bioconductor-friendly
biocthis::use_bioc_vignette("biocthispkg", "Introduction to biocthispkg")
#> ✔ Adding 'knitr' to Suggests field in DESCRIPTION
#> • Use `requireNamespace("knitr", quietly = TRUE)` to test if package is installed
#> • Then directly refer to functions with `knitr::fun()`
#> ✔ Adding 'BiocStyle' to Suggests field in DESCRIPTION
#> • Use `requireNamespace("BiocStyle", quietly = TRUE)` to test if package is installed
#> • Then directly refer to functions with `BiocStyle::fun()`
#> ✔ Adding 'RefManageR' to Suggests field in DESCRIPTION
#> • Use `requireNamespace("RefManageR", quietly = TRUE)` to test if package is installed
#> • Then directly refer to functions with `RefManageR::fun()`
#> ✔ Adding 'sessioninfo' to Suggests field in DESCRIPTION
#> • Use `requireNamespace("sessioninfo", quietly = TRUE)` to test if package is installed
#> • Then directly refer to functions with `sessioninfo::fun()`
#> ✔ Adding 'testthat' to Suggests field in DESCRIPTION
#> • Use `requireNamespace("testthat", quietly = TRUE)` to test if package is installed
#> • Then directly refer to functions with `testthat::fun()`
#> ✔ Adding 'knitr' to VignetteBuilder
#> ✔ Adding 'inst/doc' to '.gitignore'
#> ✔ Creating 'vignettes/'
#> ✔ Adding '*.html', '*.R' to 'vignettes/.gitignore'
#> ✔ Adding 'rmarkdown' to Suggests field in DESCRIPTION
#> • Use `requireNamespace("rmarkdown", quietly = TRUE)` to test if package is installed
#> • Then directly refer to functions with `rmarkdown::fun()`
#> ✔ Writing 'vignettes/biocthispkg.Rmd'
#> • Edit 'vignettes/biocthispkg.Rmd'

4 Acknowledgments

biocthis wouldn’t have been possible without the help of many other R package developers. Please read the full story at the biocthis developer notes vignette.

Thank you very much! 🙌🏽😊

5 Reproducibility

The biocthis package (Collado-Torres, 2024) was made possible thanks to:

  • R (R Core Team, 2024)
  • BiocStyle (Oleś, 2024)
  • covr (Hester, 2023)
  • devtools (Wickham, Hester, Chang et al., 2022)
  • fs (Hester, Wickham, and Csárdi, 2024)
  • glue (Hester and Bryan, 2024)
  • knitr (Xie, 2024)
  • pkgdown (Wickham, Hesselberth, and Salmon, 2024)
  • rlang (Henry and Wickham, 2024)
  • RefManageR (McLean, 2017)
  • rmarkdown (Allaire, Xie, Dervieux et al., 2024)
  • sessioninfo (Wickham, Chang, Flight et al., 2021)
  • styler (Müller and Walthert, 2024)
  • testthat (Wickham, 2011)
  • usethis (Wickham, Bryan, Barrett et al., 2024)

This package was developed using biocthis.

Code for creating the vignette

## Create the vignette
library("rmarkdown")
system.time(render("biocthis.Rmd", "BiocStyle::html_document"))

## Extract the R code
library("knitr")
knit("biocthis.Rmd", tangle = TRUE)

Date the vignette was generated.

#> [1] "2024-04-30 22:46:22 EDT"

Wallclock time spent generating the vignette.

#> Time difference of 3.004 secs

R session information.

#> ─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.4.0 beta (2024-04-15 r86425)
#>  os       Ubuntu 22.04.4 LTS
#>  system   x86_64, linux-gnu
#>  ui       X11
#>  language (EN)
#>  collate  en_US.UTF-8
#>  ctype    en_US.UTF-8
#>  tz       America/New_York
#>  date     2024-04-30
#>  pandoc   2.7.3 @ /usr/bin/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────
#>  package     * version date (UTC) lib source
#>  askpass       1.2.0   2023-09-03 [2] CRAN (R 4.4.0)
#>  backports     1.4.1   2021-12-13 [2] CRAN (R 4.4.0)
#>  bibtex        0.5.1   2023-01-26 [2] CRAN (R 4.4.0)
#>  BiocManager   1.30.22 2023-08-08 [2] CRAN (R 4.4.0)
#>  BiocStyle   * 2.32.0  2024-04-30 [2] Bioconductor 3.19 (R 4.4.0)
#>  biocthis    * 1.14.0  2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
#>  bookdown      0.39    2024-04-15 [2] CRAN (R 4.4.0)
#>  brio          1.1.5   2024-04-24 [2] CRAN (R 4.4.0)
#>  bslib         0.7.0   2024-03-29 [2] CRAN (R 4.4.0)
#>  cachem        1.0.8   2023-05-01 [2] CRAN (R 4.4.0)
#>  cli           3.6.2   2023-12-11 [2] CRAN (R 4.4.0)
#>  crayon        1.5.2   2022-09-29 [2] CRAN (R 4.4.0)
#>  credentials   2.0.1   2023-09-06 [2] CRAN (R 4.4.0)
#>  desc          1.4.3   2023-12-10 [2] CRAN (R 4.4.0)
#>  digest        0.6.35  2024-03-11 [2] CRAN (R 4.4.0)
#>  evaluate      0.23    2023-11-01 [2] CRAN (R 4.4.0)
#>  fansi         1.0.6   2023-12-08 [2] CRAN (R 4.4.0)
#>  fastmap       1.1.1   2023-02-24 [2] CRAN (R 4.4.0)
#>  fs            1.6.4   2024-04-25 [2] CRAN (R 4.4.0)
#>  generics      0.1.3   2022-07-05 [2] CRAN (R 4.4.0)
#>  gert          2.0.1   2023-12-04 [2] CRAN (R 4.4.0)
#>  glue          1.7.0   2024-01-09 [2] CRAN (R 4.4.0)
#>  htmltools     0.5.8.1 2024-04-04 [2] CRAN (R 4.4.0)
#>  httr          1.4.7   2023-08-15 [2] CRAN (R 4.4.0)
#>  jquerylib     0.1.4   2021-04-26 [2] CRAN (R 4.4.0)
#>  jsonlite      1.8.8   2023-12-04 [2] CRAN (R 4.4.0)
#>  knitr         1.46    2024-04-06 [2] CRAN (R 4.4.0)
#>  lifecycle     1.0.4   2023-11-07 [2] CRAN (R 4.4.0)
#>  lubridate     1.9.3   2023-09-27 [2] CRAN (R 4.4.0)
#>  magrittr      2.0.3   2022-03-30 [2] CRAN (R 4.4.0)
#>  openssl       2.1.2   2024-04-21 [2] CRAN (R 4.4.0)
#>  pillar        1.9.0   2023-03-22 [2] CRAN (R 4.4.0)
#>  pkgconfig     2.0.3   2019-09-22 [2] CRAN (R 4.4.0)
#>  plyr          1.8.9   2023-10-02 [2] CRAN (R 4.4.0)
#>  purrr         1.0.2   2023-08-10 [2] CRAN (R 4.4.0)
#>  R.cache       0.16.0  2022-07-21 [2] CRAN (R 4.4.0)
#>  R.methodsS3   1.8.2   2022-06-13 [2] CRAN (R 4.4.0)
#>  R.oo          1.26.0  2024-01-24 [2] CRAN (R 4.4.0)
#>  R.utils       2.12.3  2023-11-18 [2] CRAN (R 4.4.0)
#>  R6            2.5.1   2021-08-19 [2] CRAN (R 4.4.0)
#>  Rcpp          1.0.12  2024-01-09 [2] CRAN (R 4.4.0)
#>  RefManageR  * 1.4.0   2022-09-30 [2] CRAN (R 4.4.0)
#>  rlang         1.1.3   2024-01-10 [2] CRAN (R 4.4.0)
#>  rmarkdown     2.26    2024-03-05 [2] CRAN (R 4.4.0)
#>  roxygen2      7.3.1   2024-01-22 [2] CRAN (R 4.4.0)
#>  rprojroot     2.0.4   2023-11-05 [2] CRAN (R 4.4.0)
#>  rstudioapi    0.16.0  2024-03-24 [2] CRAN (R 4.4.0)
#>  sass          0.4.9   2024-03-15 [2] CRAN (R 4.4.0)
#>  sessioninfo * 1.2.2   2021-12-06 [2] CRAN (R 4.4.0)
#>  stringi       1.8.3   2023-12-11 [2] CRAN (R 4.4.0)
#>  stringr       1.5.1   2023-11-14 [2] CRAN (R 4.4.0)
#>  styler      * 1.10.3  2024-04-07 [2] CRAN (R 4.4.0)
#>  sys           3.4.2   2023-05-23 [2] CRAN (R 4.4.0)
#>  testthat      3.2.1.1 2024-04-14 [2] CRAN (R 4.4.0)
#>  tibble        3.2.1   2023-03-20 [2] CRAN (R 4.4.0)
#>  timechange    0.3.0   2024-01-18 [2] CRAN (R 4.4.0)
#>  usethis     * 2.2.3   2024-02-19 [2] CRAN (R 4.4.0)
#>  utf8          1.2.4   2023-10-22 [2] CRAN (R 4.4.0)
#>  vctrs         0.6.5   2023-12-01 [2] CRAN (R 4.4.0)
#>  whisker       0.4.1   2022-12-05 [2] CRAN (R 4.4.0)
#>  withr         3.0.0   2024-01-16 [2] CRAN (R 4.4.0)
#>  xfun          0.43    2024-03-25 [2] CRAN (R 4.4.0)
#>  xml2          1.3.6   2023-12-04 [2] CRAN (R 4.4.0)
#>  yaml          2.3.8   2023-12-11 [2] CRAN (R 4.4.0)
#> 
#>  [1] /tmp/RtmpmpViBy/Rinst249f456cf275bf
#>  [2] /home/biocbuild/bbs-3.19-bioc/R/site-library
#>  [3] /home/biocbuild/bbs-3.19-bioc/R/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

6 Bibliography

This vignette was generated using BiocStyle (Oleś, 2024) with knitr (Xie, 2024) and rmarkdown (Allaire, Xie, Dervieux et al., 2024) running behind the scenes.

Citations made with RefManageR (McLean, 2017).

[1] J. Allaire, Y. Xie, C. Dervieux, et al. rmarkdown: Dynamic Documents for R. R package version 2.26. 2024. URL: https://github.com/rstudio/rmarkdown.

[2] L. Collado-Torres. Automate package and project setup for Bioconductor packages. https://github.com/lcolladotor/biocthisbiocthis - R package version 1.14.0. 2024. DOI: 10.18129/B9.bioc.biocthis. URL: http://www.bioconductor.org/packages/biocthis.

[3] L. Henry and H. Wickham. rlang: Functions for Base Types and Core R and ‘Tidyverse’ Features. R package version 1.1.3. 2024. URL: https://CRAN.R-project.org/package=rlang.

[4] J. Hester. covr: Test Coverage for Packages. R package version 3.6.4. 2023. URL: https://CRAN.R-project.org/package=covr.

[5] J. Hester and J. Bryan. glue: Interpreted String Literals. R package version 1.7.0. 2024. URL: https://CRAN.R-project.org/package=glue.

[6] J. Hester, H. Wickham, and G. Csárdi. fs: Cross-Platform File System Operations Based on ‘libuv’. R package version 1.6.4. 2024. URL: https://CRAN.R-project.org/package=fs.

[7] M. W. McLean. “RefManageR: Import and Manage BibTeX and BibLaTeX References in R”. In: The Journal of Open Source Software (2017). DOI: 10.21105/joss.00338.

[8] K. Müller and L. Walthert. styler: Non-Invasive Pretty Printing of R Code. R package version 1.10.3. 2024. URL: https://CRAN.R-project.org/package=styler.

[9] A. Oleś. BiocStyle: Standard styles for vignettes and other Bioconductor documents. R package version 2.32.0. 2024. URL: https://github.com/Bioconductor/BiocStyle.

[10] R Core Team. R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing. Vienna, Austria, 2024. URL: https://www.R-project.org/.

[11] H. Wickham. “testthat: Get Started with Testing”. In: The R Journal 3 (2011), pp. 5–10. URL: https://journal.r-project.org/archive/2011-1/RJournal_2011-1_Wickham.pdf.

[12] H. Wickham, J. Bryan, M. Barrett, et al. usethis: Automate Package and Project Setup. R package version 2.2.3. 2024. URL: https://CRAN.R-project.org/package=usethis.

[13] H. Wickham, W. Chang, R. Flight, et al. sessioninfo: R Session Information. R package version 1.2.2. 2021. URL: https://CRAN.R-project.org/package=sessioninfo.

[14] H. Wickham, J. Hesselberth, and M. Salmon. pkgdown: Make Static HTML Documentation for a Package. R package version 2.0.9. 2024. URL: https://CRAN.R-project.org/package=pkgdown.

[15] H. Wickham, J. Hester, W. Chang, et al. devtools: Tools to Make Developing R Packages Easier. R package version 2.4.5. 2022. URL: https://CRAN.R-project.org/package=devtools.

[16] Y. Xie. knitr: A General-Purpose Package for Dynamic Report Generation in R. R package version 1.46. 2024. URL: https://yihui.org/knitr/.