1 Overview

The gDRstyle package is intended to be used during development of packages within the gDR platform. It has 3 primary uses: (1)to set a style guide with functions that check that the style is upheld, (2) during CI to ensure code passes R CMD check to maintain the state of the code in high quality, and (3) for package dependency installation during gDR platform image building.

2 Use Cases

2.1 Style guide

See the written Style guide. The function lintPkgDirs can be used to ensure the package is appropriately linted. ## CI/CD The checkPackage function will check that the package abides by gDRstyle stylistic requirements, passes rcmdcheck, and ensures that the dependencies.yml file used to build gDR platform’s docker image is kept up-to-date with the dependencies listed in the package’s DESCRIPTION file. This is called in gDR platform packages’ CI/CD.

2.2 Package installation

The function installAllDeps assists in installing package dependencies.

SessionInfo

sessionInfo()
## R version 4.3.1 (2023-06-16)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 22.04.3 LTS
## 
## Matrix products: default
## BLAS:   /home/biocbuild/bbs-3.18-bioc/R/lib/libRblas.so 
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_GB              LC_COLLATE=C              
##  [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: America/New_York
## tzcode source: system (glibc)
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
## [1] gDRstyle_1.0.0   BiocStyle_2.30.0
## 
## loaded via a namespace (and not attached):
##  [1] jsonlite_1.8.7      compiler_4.3.1      BiocManager_1.30.22
##  [4] crayon_1.5.2        xml2_1.3.5          callr_3.7.3        
##  [7] jquerylib_0.1.4     yaml_2.3.7          fastmap_1.1.1      
## [10] R6_2.5.1            knitr_1.44          backports_1.4.1    
## [13] tibble_3.2.1        lintr_3.1.0         bookdown_0.36      
## [16] desc_1.4.2          cyclocomp_1.1.1     rprojroot_2.0.3    
## [19] bslib_0.5.1         pillar_1.9.0        rlang_1.1.1        
## [22] utf8_1.2.4          cachem_1.0.8        xfun_0.40          
## [25] sass_0.4.7          lazyeval_0.2.2      rex_1.2.1          
## [28] cli_3.6.1           withr_2.5.1         magrittr_2.0.3     
## [31] ps_1.7.5            digest_0.6.33       processx_3.8.2     
## [34] remotes_2.4.2.1     lifecycle_1.0.3     vctrs_0.6.4        
## [37] data.table_1.14.8   evaluate_0.22       glue_1.6.2         
## [40] fansi_1.0.5         rmarkdown_2.25      pkgconfig_2.0.3    
## [43] tools_4.3.1         htmltools_0.5.6.1