Bioconductor / BiocCheck

http://bioconductor.org/packages/BiocCheck
8 stars 26 forks source link

BiocCheck for function length fails if there is no R code #186

Closed lshep closed 1 year ago

lshep commented 1 year ago

This is relevant for workflows and data packages that have no R code. BiocCheck ERROR's

* Checking parsed R code in R directory, examples, vignettes...
* Checking function lengths...
Error in if (nrow(df)) { : argument is of length zero
Calls: BiocCheck -> BiocCheckRun -> checkFunctionLengths
Execution halted

It is expected that workflows shouldn't have R code and data package would have minimal to no R code so this should be fixed to account for such a case.

Currently seen with packages currently under review:

http://bioconductor.org/spb_reports/CoSIAdata_buildreport_20230323085402.html

and

http://bioconductor.org/spb_reports/AHMassBank_buildreport_20230323091407.html