R/julia_set_threads.R

Defines functions set_julia_nthreads

Documented in set_julia_nthreads

set_julia_nthreads <- function(){

  #' Helper function to set the number of threads for use in Julia
  #' @export

  message("Set the number of Julia threads as an environment variable as JULIACONNECTOR_JULIAOPTS='--threads {N|auto}', where N is either an integer or 'auto', where 'auto' sets N to the number of local CPU threads. See also the Julia documentation here https://docs.julialang.org/en/v1/manual/command-line-options/ .")
  usethis::edit_r_environ()

}
s3alfisc/JuliaConnectoR.utils documentation built on April 4, 2022, 12:45 p.m.