R/cleanLog.R

Defines functions cleanLog

#' Pre-clean CRAN Logs.
#'
#' package and size NAs; package size = 0
#' @param cran_log Object.
#' @noRd

cleanLog <- function(cran_log) {
  sel <- !is.na(cran_log$package) & !is.na(cran_log$size) & cran_log$size != 0
  cran_log[sel, ]
}

Try the packageRank package in your browser

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

packageRank documentation built on Nov. 10, 2023, 1:07 a.m.