Skip to content

Commit

Permalink
update docs for size limit checks for data files, closes #167 and #67
Browse files Browse the repository at this point in the history
  • Loading branch information
LiNk-NY committed Jan 9, 2023
1 parent 8562ad6 commit 8ddcfcc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ CHANGES IN VERSION 1.36.0

NEW FEATURES

o Include size limit checks for data files in `data`, `inst/extdata`, and
`data-raw` folders (@lshep, #167, #67)
o Source package directories that include an `inst/doc` folder with files
are now flagged with an error. `doc` folders are generated during
`R CMD build`.
Expand Down
7 changes: 4 additions & 3 deletions R/checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,9 @@ checkIndivFileSizes <- function(pkgdir)
{
largefiles <- .findLargeFiles(pkgdir, data_only = FALSE)
if (length(largefiles))
handleWarningFiles(
"The 5MB size limit was exceeded in package files.",
handleWarning(
"Package files exceed the 5MB size limit.",
help_text = "Files over the limit: ",
messages = largefiles
)
}
Expand All @@ -187,7 +188,7 @@ checkDataFileSizes <- function(pkgdir) {
largedata <- .findLargeFiles(pkgdir, data_only = TRUE)
if (length(largedata))
handleWarning(
"The 5MB size limit was exceeded in data files.",
"Data files exceed the 5MB size limit.",
help_text =
"Use 'ExperimentHub' or 'AnnotationHub' for the files: ",
messages = largedata
Expand Down
4 changes: 3 additions & 1 deletion vignettes/BiocCheck.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ Can be disabled with `--no-check-pkg-size` and `--no-check-file-size`.
checking a source tarball. (ERROR)

* **Checking individual file sizes**
The current size limit for all individual files is 5 MB. (WARNING)
The current size limit for all individual files is 5 MB. Checks inspect both
package-wide files and data files found in the `data`, `inst/extdata`, and
`data-raw` folders. (WARNING)

It may be necessary to remove large files from your Git history; see
[Remove Large Data Files and Clean Git Tree][3.1]
Expand Down

0 comments on commit 8ddcfcc

Please sign in to comment.