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
}

Try the packageRank package in your browser

Any scripts or data that you put into this service are public.

packageRank documentation built on June 8, 2025, 1:24 p.m.