waldronlab / curatedTCGAData

Curated Data From The Cancer Genome Atlas (TCGA) as MultiAssayExperiment Objects
https://bioconductor.org/packages/curatedTCGAData
41 stars 7 forks source link

bulletproof for missing packages? #39

Closed vjcitn closed 3 years ago

vjcitn commented 3 years ago
> library(curatedTCGAData)
2/13 packages newly attached/loaded, see sessionInfo() for details.
> acc = curatedTCGAData("ACC", "Mutation", dry=FALSE)
  |======================================================================| 100%

snapshotDate(): 2020-09-09
Working on: ACC_Mutation-20160128
see ?curatedTCGAData and browseVignettes('curatedTCGAData') for documentation
downloading 1 resources
retrieving 1 resource
  |======================================================================| 100%

loading from cache
Loading required package: RaggedExperiment
Error in .requirePackage(package) : 
  unable to find required package ‘RaggedExperiment’
In addition: Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘RaggedExperiment’

could something like if (!requireNamespace('RaggedExperiment')) stop("install RaggedExperiment to proceed...") be better here?

LiNk-NY commented 3 years ago

Thanks for the issue Vince @vjcitn . I've updated the package here: 7bbf5fe98ee921fb71ebc72e6abcafc1198ba3e3