R/format_channels_args.R

Defines functions format_channels_args

#' Format Channels Arguments
#' @param ... Character. Channels to be used by `micromamba`.
#' @keywords internal
#' @noRd
format_channels_args <- function(...) {
  channels <- c(...)
  if (is.null(channels)) {
    channels <- c(
      "bioconda",
      "conda-forge"
    )
  }
  channels_arg <- c()
  for (channel in channels) {
    channels_arg <- c(channels_arg, "-c", channel)
  }
  return(channels_arg)
}

Try the condathis package in your browser

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

condathis documentation built on April 12, 2025, 2:01 a.m.