R/smallFilter.R

Defines functions smallFilter

#' Filter out small downloads (prototype).
#'
#' @param dat Object. Package log entries.
#' @param threshold Numeric. Bytes.
#' @noRd

smallFilter <- function(dat, threshold = 1000L) {
  if (any(dat$size >= threshold)) dat[dat$size >= threshold, ]
  else dat
}
lindbrook/packageRank documentation built on April 15, 2024, 12:51 a.m.