R/getLogFiles.R

Defines functions getLogFiles

Documented in getLogFiles

#' Get log file paths for jobs.
#' @template arg_reg
#' @param ids [\code{integer}]\cr
#'   Ids of jobs.
#'   Default is all jobs.
#' @return [\code{character}]. Vector of file paths to log files.
#' @family debug
#' @export
getLogFiles = function(reg, ids) {
  checkRegistry(reg, writeable = FALSE)
  syncRegistry(reg)
  if (missing(ids))
    ids = getJobIds(reg)
  else
    ids = checkIds(reg, ids)
  fids = dbGetFirstJobInChunkIds(reg, ids)
  getLogFilePath(reg, ifelse(is.na(fids), ids, fids))
}

Try the BatchJobs package in your browser

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

BatchJobs documentation built on March 21, 2022, 5:05 p.m.