7 biocthis introduction
Instructor: Leo
7.2 biocthis main commands
- https://bioconductor.org/packages/biocthis
pkgdown
documentation website: https://lcolladotor.github.io/biocthis/biocthis::use_bioc_pkg_templates()
documentation: https://lcolladotor.github.io/biocthis/reference/use_bioc_pkg_templates.html
These are the main steps you will need to know to make a Bioconductor package
with biocthis
:
- You first will need to create a package using a command from
usethis
.
- For example:
usethis::create_package("~/Desktop/cshl2023pkg")
- Now that you have a package, we can use
biocthis
to create 4 template R scripts that will guide you and help you make the full structure for a Bioconductor R package.
- On your new R package (
cshl2023pkg
), we can now usebiocthis::use_bioc_pkg_templates()
.
In part these commands were born out of my own self interest to make it easier to make new packages instead of copy-pasting the contents of an older one, then manually adjusting all the pieces for a new package. See https://lcolladotor.github.io/pkgs/ for the list of all the R packages I’ve been involved in.
7.3 Live demo
Here is the live demo result https://github.com/lcolladotor/cshl2023pkg/ with
its companion documentation website at
https://lcolladotor.github.io/cshl2023pkg/. Note that you will currently need
the development version of biocthis
which addresses the issues documented at
https://github.com/r-lib/usethis/issues/1856.
## Install biocthis development version
::install("lcolladotor/biocthis") BiocManager
Check the git commit history at https://github.com/lcolladotor/cshl2023pkg/commits/devel and the GitHub Actions history at https://github.com/lcolladotor/cshl2023pkg/actions. We can see at https://app.codecov.io/gh/lcolladotor/cshl2023pkg the code coverage results for this demonstration package.
7.4 Community
For more materials on R/Bioconductor package development check http://contributions.bioconductor.org/.
I’m on a Friday night mood now enjoying @lmwebr’s #OSTA workshop 🔥, feeling grateful 🙏🏽 to everyone who nominated me for the #BioC2021 community award 🥇& celebrating 🍺 https://t.co/2oFLdGO3Uh
— 🇲🇽 Leonardo Collado-Torres (@lcolladotor) August 7, 2021
See you in #BioC2022🤞🏽 @Bioconductor #rstats @CDSBMexico https://t.co/0SGHDfiRCs pic.twitter.com/UmM9nMP2W2
biocthis
is one of the reasons for my 2021 Bioconductor community award :-)
Do you want to play an active role? Join the cloud-working-group
Slack channel.
Soon I’ll process and upload the video to YouTube. By soon, I mean, later this summer.↩︎