% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generalFunctions.R
\name{.chooseBPPARAM}
\alias{.chooseBPPARAM}
\title{Auto-choose BiocParallelParam Backend}
\usage{
.chooseBPPARAM(workers = NULL, progressbar = FALSE, cluster_type = "SOCK", ...)
}
\arguments{
\item{workers}{Optional integer to override detected cores.}

\item{progressbar}{Logical; show progress bar.}

\item{cluster_type}{Type passed to `SnowParam()`, defaults to "SOCK".}

\item{...}{Further args passed to `SnowParam` or `MulticoreParam`.}
}
\value{
A `SnowParam` or `MulticoreParam` configured with the desired workers.
}
\description{
1) If `NSLOTS` or `SLURM_CPUS_ON_NODE` are set, uses `SnowParam()` with that many workers.
2) On Windows, `SnowParam(detectCores())`.
3) Otherwise on Unix, `MulticoreParam(detectCores())`.
}
\author{
Radu Zabet and Young Jun Kim
}
\keyword{internal}
