R/slimr_output.R
r_output_full.Rd
Utility function to tell SLiM to output its outputFull() output
r_output_full(name = "full_output", ...)
slimr_output_full(name = "full_output", ...)
Name of output to use to label it in slimr_results object
. Default is "full_output"
Other arguments to be passed to r_output
test_sim <- slim_script(
slim_block_init_minimal(mutation_rate = 1e-6),
slim_block_add_subpops(1, 100),
slim_block(1, 20, late(), {
r_output_full("out", do_every = 10)
})
)
test_sim
#> <slimr_script[3]>
#> block_init:initialize() {
#> initializeMutationRate(1e-06);
#> initializeMutationType("m1", 0.5, "f", 0);
#> initializeGenomicElementType("g1", m1, 1);
#> initializeGenomicElement(g1, 0, 1e+05 - 1);
#> initializeRecombinationRate(1e-08);
#> }
#>
#> block_2:1 early() {
#> sim.addSubpop("p1", 100);
#> }
#>
#> block_3:1:20 late() {
#> {sim.outputFull() -> out}
#> }