R/process.bibfile.R

Defines functions process.bibfile

Documented in process.bibfile

#' @rdname TAF-internal
#'
#' @export

## Process *.bib file

process.bibfile <- function(type, clean = TRUE, quiet = FALSE)
{
  # check type arg
  type <- match.arg(type, c("data", "software"))

  if (clean && type == "data")
  {
    clean.data(quiet = quiet)
  }
  if (clean && type == "software")
  {
    clean.software(quiet = quiet)
    clean.library(quiet = quiet)
  }

  if (!quiet) {
    message("Processing ", paste0(toupper(type), ".bib"))
  }

  entries <- taf.sources(type)
  sapply(entries, process.entry, quiet = quiet)
}

Try the TAF package in your browser

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

TAF documentation built on April 7, 2021, 5:06 p.m.