vignettes/cdsbthis.Rmd
cdsbthis.Rmd
cdsbthis
R
is an open-source statistical environment which can be easily modified to enhance its functionality via packages. cdsbthis 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 cdsbthis by using the following commands in your R
session:
if (!requireNamespace("BiocManager", quietly = TRUE)) {
install.packages("BiocManager")
}
BiocManager::install("cdsbthis")
## Check that you have a valid Bioconductor installation
BiocManager::valid()
cdsbthis is based on many other packages and in particular in those that have implemented the infrastructure needed for dealing with RNA-seq data (EDIT!). That is, packages like SummarizedExperiment (EDIT!).
If you are asking yourself the question “Where do I start using Bioconductor?” you might be interested in this blog post.
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 cdsbthis
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.
cdsbthis
We hope that cdsbthis will be useful for your research. Please use the following information to cite the package and the overall approach. Thank you!
## Citation info
citation("cdsbthis")
#>
#> lcolladotor (2021). _Ejemplo para CDSB_. doi: 10.18129/B9.bioc.cdsbthis
#> (URL: https://doi.org/10.18129/B9.bioc.cdsbthis),
#> https://github.com/lcolladotor/cdsbthis/cdsbthis - R package version
#> 0.99.0, <URL: http://www.bioconductor.org/packages/cdsbthis>.
#>
#> lcolladotor (2021). "Ejemplo para CDSB." _bioRxiv_. doi: 10.1101/TODO
#> (URL: https://doi.org/10.1101/TODO), <URL:
#> 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)'.
cdsbthis
Este paquete lo hizo Leonardo Collado Torres durante el mini curso de la CDSB, RMB y NNB-CCG Creación de paquetes de software de R/Bioconductor.
Ejemplos de cubicar()
que fue una función que creamos durante la demostración de Marcel Ramos.
cubicar(2)
#> [1] 8
cubicar(seq_len(10))
#> [1] 1 8 27 64 125 216 343 512 729 1000
cubicar(pi)
#> [1] 31.00628
Edit this as you see fit =)
Here is an example of you can cite your package inside the vignette:
The cdsbthis package (lcolladotor, 2021) was made possible thanks to:
This package was developed using biocthis.
Code for creating the vignette
## Create the vignette
library("rmarkdown")
system.time(render("cdsbthis.Rmd", "BiocStyle::html_document"))
## Extract the R code
library("knitr")
knit("cdsbthis.Rmd", tangle = TRUE)
Date the vignette was generated.
#> [1] "2021-07-16 22:48:48 UTC"
Wallclock time spent generating the vignette.
#> Time difference of 1.176 secs
R
session information.
#> ─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────
#> setting value
#> version R version 4.1.0 (2021-05-18)
#> os Ubuntu 20.04.2 LTS
#> system x86_64, linux-gnu
#> ui X11
#> language (EN)
#> collate en_US.UTF-8
#> ctype en_US.UTF-8
#> tz Etc/UTC
#> date 2021-07-16
#>
#> ─ Packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────
#> package * version date lib source
#> BiocManager 1.30.16 2021-06-15 [1] RSPM (R 4.1.0)
#> BiocStyle * 2.20.2 2021-06-17 [1] Bioconductor
#> bookdown 0.22 2021-04-22 [1] RSPM (R 4.1.0)
#> cachem 1.0.5 2021-05-15 [2] RSPM (R 4.1.0)
#> cdsbthis * 0.99.0 2021-07-16 [1] Bioconductor
#> cli 3.0.0 2021-06-30 [2] RSPM (R 4.1.0)
#> crayon 1.4.1 2021-02-08 [2] RSPM (R 4.1.0)
#> desc 1.3.0 2021-03-05 [2] RSPM (R 4.1.0)
#> digest 0.6.27 2020-10-24 [2] RSPM (R 4.1.0)
#> evaluate 0.14 2019-05-28 [2] RSPM (R 4.1.0)
#> fastmap 1.1.0 2021-01-25 [2] RSPM (R 4.1.0)
#> fs 1.5.0 2020-07-31 [2] RSPM (R 4.1.0)
#> generics 0.1.0 2020-10-31 [1] RSPM (R 4.1.0)
#> htmltools 0.5.1.1 2021-01-22 [1] RSPM (R 4.1.0)
#> httr 1.4.2 2020-07-20 [2] RSPM (R 4.1.0)
#> jsonlite 1.7.2 2020-12-09 [2] RSPM (R 4.1.0)
#> knitr 1.33 2021-04-24 [2] RSPM (R 4.1.0)
#> lubridate 1.7.10 2021-02-26 [1] RSPM (R 4.1.0)
#> magrittr 2.0.1 2020-11-17 [2] RSPM (R 4.1.0)
#> memoise 2.0.0 2021-01-26 [2] RSPM (R 4.1.0)
#> pkgdown 1.6.1 2020-09-12 [1] RSPM (R 4.1.0)
#> plyr 1.8.6 2020-03-03 [1] RSPM (R 4.1.0)
#> R6 2.5.0 2020-10-28 [2] RSPM (R 4.1.0)
#> ragg 1.1.3 2021-06-09 [1] RSPM (R 4.1.0)
#> Rcpp 1.0.7 2021-07-07 [2] RSPM (R 4.1.0)
#> RefManageR * 1.3.0 2020-11-13 [1] RSPM (R 4.1.0)
#> rlang 0.4.11 2021-04-30 [2] RSPM (R 4.1.0)
#> rmarkdown 2.9 2021-06-15 [1] RSPM (R 4.1.0)
#> rprojroot 2.0.2 2020-11-15 [2] RSPM (R 4.1.0)
#> sessioninfo * 1.1.1 2018-11-05 [2] RSPM (R 4.1.0)
#> stringi 1.7.2 2021-07-14 [2] RSPM (R 4.1.0)
#> stringr 1.4.0 2019-02-10 [2] RSPM (R 4.1.0)
#> systemfonts 1.0.2 2021-05-11 [1] RSPM (R 4.1.0)
#> textshaping 0.3.5 2021-06-09 [1] RSPM (R 4.1.0)
#> withr 2.4.2 2021-04-18 [2] RSPM (R 4.1.0)
#> xfun 0.24 2021-06-15 [2] RSPM (R 4.1.0)
#> xml2 1.3.2 2020-04-23 [2] RSPM (R 4.1.0)
#> yaml 2.2.1 2020-02-01 [2] RSPM (R 4.1.0)
#>
#> [1] /__w/_temp/Library
#> [2] /usr/local/lib/R/site-library
#> [3] /usr/local/lib/R/library
This vignette was generated using BiocStyle (Oleś, 2021) with knitr (Xie, 2021) and rmarkdown (Allaire, Xie, McPherson, et al., 2021) running behind the scenes.
Citations made with RefManageR (McLean, 2017).
[1] J. Allaire, Y. Xie, J. McPherson, et al. rmarkdown: Dynamic Documents for R. R package version 2.9. 2021. URL: https://github.com/rstudio/rmarkdown.
[2] G. Csárdi, R. core, H. Wickham, et al. sessioninfo: R Session Information. R package version 1.1.1. 2018. URL: https://github.com/r-lib/sessioninfo#readme.
[3] lcolladotor. Ejemplo para CDSB. https://github.com/lcolladotor/cdsbthis/cdsbthis - R package version 0.99.0. 2021. DOI: 10.18129/B9.bioc.cdsbthis. URL: http://www.bioconductor.org/packages/cdsbthis.
[4] 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.
[5] A. Oleś. BiocStyle: Standard styles for vignettes and other Bioconductor documents. R package version 2.20.2. 2021. URL: https://github.com/Bioconductor/BiocStyle.
[6] R Core Team. R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing. Vienna, Austria, 2021. URL: https://www.R-project.org/.
[7] 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.
[8] Y. Xie. knitr: A General-Purpose Package for Dynamic Report Generation in R. R package version 1.33. 2021. URL: https://yihui.org/knitr/.