bcbioRNASeq
class.Attempt to follow these style guides, by priority: (1) Bioconductor coding style; (2) tidyverse style guide; (3) Google R style guide.
<-
and not =
for assignment.if
/then
statements using opening and closing brackets ({
, }
).else
declarations should be on the same line as the closing bracket.<-
), brackets ({
), and comma delimiters (e.g. c("foo", "bar")
not c("foo","bar")
.If there are changes to bcbioRNASeq
class or loadRNASeq()
function, be sure to rebuild all working example data:
source(file.path("data-raw", "examples.R"))
For all package updates, run these commands prior to a pull request:
lintr::lint_package()
devtools::document()
devtools::run_examples()
devtools::test()
devtools::check()
BiocCheck::BiocCheck(getwd())
unlink("docs", recursive = TRUE)
pkgdown::build_site()
Beside this, the package should be able to run the templates. This should be
done in the parent directory of bcbioRNASeq
folder.
git clone https://github.com/bcbio/bcbio_rnaseq_output_example.git
cd bcbio_rnaseq_output_example
Rscript -e 'testthat::test_file("test_reports.R")'
Make sure qc.html
and de.html
are created inside reports
folder and
the figures and tables look as expected.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.