knitr::opts_chunk$set(
    collapse = TRUE,
    comment = "#>",
    crop = NULL ## Related to https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016656.html
)
## Track time spent on making the vignette
startTime <- Sys.time()

## Bib setup
library("knitcitations")

## Load knitcitations with a clean bibliography
cleanbib()
cite_options(hyperlink = "to.doc", citation_format = "text", style = "html")

## Write bibliography information
bib <- c(
    R = citation(),
    BiocStyle = citation("BiocStyle")[1],
    knitcitations = citation("knitcitations")[1],
    knitr = citation("knitr")[1],
    rmarkdown = citation("rmarkdown")[1],
    sessioninfo = citation("sessioninfo")[1],
    testthat = citation("testthat")[1],
    rutils = citation("rutils")[1]
)

write.bibtex(bib, file = "rutils.bib")

Basics

Install rutils

R is an open-source statistical environment which can be easily modified to enhance its functionality via packages. r Biocpkg("rutils") 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 r Biocpkg("rutils") by using the following commands in your R session:

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

BiocManager::install("rutils")

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

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 rutils 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.

Citing rutils

We hope that r Biocpkg("rutils") will be useful for your research. Please use the following information to cite the package and the overall approach. Thank you!

## Citation info
citation("rutils")

Quick start to using to rutils

library("rutils")

A number of different families of functions exist in rutils, including:

Reproducibility

The r Biocpkg("rutils") package r citep(bib[["rutils"]]) was made possible thanks to:

This package was developed using r BiocStyle::Githubpkg("lcolladotor/biocthis").

Code for creating the vignette

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

## Extract the R code
library("knitr")
knit("rutils.Rmd", tangle = TRUE)
## Clean up
file.remove("rutils.bib")

Date the vignette was generated.

## Date the vignette was generated
Sys.time()

Wallclock time spent generating the vignette.

## Processing time in seconds
totalTime <- diff(c(startTime, Sys.time()))
round(totalTime, digits = 3)

R session information.

## Session info
library("sessioninfo")
options(width = 120)
session_info()

Bibliography

This vignette was generated using r Biocpkg("BiocStyle") r citep(bib[["BiocStyle"]]) with r CRANpkg("knitr") r citep(bib[["knitr"]]) and r CRANpkg("rmarkdown") r citep(bib[["rmarkdown"]]) running behind the scenes.

Citations made with r CRANpkg("knitcitations") r citep(bib[["knitcitations"]]).

## Print bibliography
bibliography()


RHReynolds/rutils documentation built on March 26, 2022, 8:17 a.m.