This function is mainly used to quickly create a script which does not does not do much, but can be used to test other code that work on `slimr_script` objects. Mainly used for documentation examples.

minimal_slimr_script(command = print("Hello world!"))

Arguments

command

An R expression to be inserted in the `slimr` script

Value

A `slimr_script` object

Examples

minimal_slimr_script()
#> <slimr_script[2]>
#> block_init:initialize() {
#>     initializeMutationRate(1e-07);
#>     initializeMutationType("m1", 0.5, "f", 0);
#>     initializeGenomicElementType("g1", m1, 1);
#>     initializeGenomicElement(g1, 0, 99999);
#>     initializeRecombinationRate(1e-08);
#> }
#> 
#> block_2:1 early() {
#>     sim.addSubpop("p1", 500);
#>     print("Hello world!");
#>     sim.simulationFinished();
#> }