run_slim: Run a SLiM model.

View source: R/slimmr_user_run_slim.R

run_slimR Documentation

Run a SLiM model.

Description

This function runs a SLiM model.

Usage

run_slim(
  model,
  reps = 1,
  seed = NULL,
  slim_output_verbosity = 1,
  output_parsing_function = function(x) return(x),
  parallel_nodes = 1,
  slim_command = "slim",
  output_runtime_diagnostics = FALSE,
  ...
)

Arguments

model

An EidosModel object.

reps

Number of replicate simulations.

seed

Random seed for simulations

slim_output_verbosity

An integer 0 - 2.

output_parsing_function

A function applied to raw output from SLiM

parallel_nodes

Number of load balancing parallel nodes to use.

slim_command

Full path to SLiM executable. Default "slim" if on PATH.

output_runtime_diagnostics

TRUE/FALSE. Output CPU and RAM usage?

...

Named constant arguments to SLiM (i.e. passed to -d / -define)

Value

Either the raw output from SLiM, or that output as parsed by output_parse_function.


ErikSRoeed/slimmr documentation built on Nov. 9, 2024, 7 a.m.