<—⬇️⬇️⬇️(Start of section that can be deleted after forking the template)⬇️⬇️⬇️—>
If you use the templateR
R package template, or any of the rworkflows
suite tools, please cite:
Brian M. Schilder, Alan E. Murphy, & Nathan G. Skene (2023) The rworkflows suite: automated continuous integration for quality checking, documentation website creation, and containerised deployment of R packages, Research Square; https://doi.org/10.21203/rs.3.rs-2399015/v1
templateR
is a template designed to make developing new R packages easy by providing:
rworkflows
).citation("<packageName>")
. Also used to auto-populate the README.Rmd.To get started, simply click on the green Use this template button at the top right of the templateR
repo.
To use certain features of rworkflows
, you may need to set up one or more GitHub Secrets:
PAT_GITHUB
[Optional]: Can grant access to private repos on GitHub Actions. You can generate your very own Personal Authentication Token with usethis::create_github_token()
. See the GitHub docs for details.DOCKER_TOKEN
[Optional]: Allows GitHub Actions to push to a DockerHub account.The GitHub Actions workflows included in this template will automatically create a documentation website for your package via GitHub Pages.
After the rworkflows
action has successfully run on Ubuntu for the first time, a new branch will appear in your repo called “gh-pages”.
<—⬆️⬆️⬆️(End of section that can be deleted after forking the template)⬆️⬆️⬆️—>
templateR
: packageTitle
If you use templateR
, please cite:
author1, author2, author3 (publicationYear) articleTitle, journalName; volumeNumber, linkToPublication
if(!require("BiocManager")) install.packages("BiocManager")
BiocManager::install("neurogenomics/templateR")
library(templateR)
utils::sessionInfo()
## R version 4.5.1 (2025-06-13)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 24.04.2 LTS
##
## Matrix products: default
## BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so; LAPACK version 3.12.0
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
## [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
## [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
## [9] LC_ADDRESS=C LC_TELEPHONE=C
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
##
## time zone: UTC
## tzcode source: system (glibc)
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] rmarkdown_2.29
##
## loaded via a namespace (and not attached):
## [1] vctrs_0.6.5 cli_3.6.5 knitr_1.50
## [4] rlang_1.1.6 xfun_0.52 renv_1.1.5
## [7] data.table_1.17.8 jsonlite_2.0.0 glue_1.8.0
## [10] rprojroot_2.1.0 htmltools_0.5.8.1 scales_1.4.0
## [13] dlstats_0.1.7 grid_4.5.1 evaluate_1.0.4
## [16] tibble_3.3.0 fastmap_1.2.0 yaml_2.3.10
## [19] lifecycle_1.0.4 BiocManager_1.30.26 rvcheck_0.2.1
## [22] compiler_4.5.1 fs_1.6.6 RColorBrewer_1.1-3
## [25] pkgconfig_2.0.3 here_1.0.1 rworkflows_1.0.6
## [28] farver_2.1.2 digest_0.6.37 R6_2.6.1
## [31] pillar_1.11.0 magrittr_2.0.3 tools_4.5.1
## [34] gtable_0.3.6 badger_0.2.5 desc_1.4.3
## [37] yulab.utils_0.2.0 ggplot2_3.5.2