R/getAlgorithmIds.R

Defines functions getAlgorithmIds

Documented in getAlgorithmIds

#' @title Get ids of algorithms in registry.
#'
#' @description
#' Get algorithm ids for jobs.
#'
#' @param reg [\code{\link{ExperimentRegistry}}]\cr
#'   Registry.
#' @param ids [\code{integer}]\cr
#'   Job ids to restrict returned algorithm ids to.
#' @return [\code{character}].
#' @family get
#' @export
getAlgorithmIds = function(reg, ids) {
  checkExperimentRegistry(reg, strict = TRUE, writeable = FALSE)
  if (missing(ids))
    return(dbGetAllAlgorithmIds(reg))
  ids = checkIds(reg, ids)
  unique(dbGetAlgorithmIds(reg, ids))
}

Try the BatchExperiments package in your browser

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

BatchExperiments documentation built on Sept. 9, 2025, 5:24 p.m.