| cs_setup | R Documentation |
Initialize the Julia session and load the Circuitscape and Omniscape Julia
packages. This is called automatically on first use of any cs_* or os_*
function. Call explicitly to control the Julia path, number of threads, or
pre-warm the session.
cs_setup(julia_home = NULL, threads = 1L, quiet = TRUE, ...)
julia_home |
Character. Path to the Julia |
threads |
Integer. Number of Julia threads to start. Default |
quiet |
Logical. Suppress Julia startup messages. Default |
... |
Additional arguments passed to |
cs_setup() does not install Julia or Julia packages. If Julia is not
found or the required packages are missing, it throws an informative error
directing you to cs_install_julia().
cs_setup() will:
Verify that Julia is installed and accessible.
Verify that the Circuitscape and Omniscape Julia packages are installed.
Load both packages and warm up the JIT compiler.
Once Julia is initialized, it stays warm for the R session. Subsequent calls
to cs_setup() return immediately.
Julia's thread count is fixed at startup and cannot be changed mid-session.
Multi-threading is used by os_run() when parallelize = TRUE.
Circuitscape functions (cs_pairwise, cs_one_to_all, etc.) do not
benefit from multiple threads.
cs_setup(threads = 4) os_run(resistance, radius = 50, parallelize = TRUE)
Invisibly returns TRUE on success.
McRae, B.H. (2006). Isolation by resistance. Evolution, 60(8), 1551–1561. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/j.0014-3820.2006.tb00500.x")}
Landau, V.A., Shah, V.B., Anantharaman, R. & Hall, K.R. (2021). Omniscape.jl: Software to compute omnidirectional landscape connectivity. Journal of Open Source Software, 6(57), 2829. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.21105/joss.02829")}
Circuitscape.jl: https://docs.circuitscape.org/Circuitscape.jl/latest/
Omniscape.jl: https://docs.circuitscape.org/Omniscape.jl/latest/
cs_install_julia(), cs_pairwise(), os_run()
cs_setup()
cs_setup(threads = 4)
cs_setup(julia_home = "/usr/local/julia/bin")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.