Get a SLiM recipe
slim_get_recipe(recipe = 1)
Integer or Character specifying the recipe number, or the recipe name.
A SLiM recipe as a length 1 character vector
slim_get_recipe(recipe = "4.1")
#> [1] "// Keywords: \n\n// set up a simple neutral simulation\ninitialize()\n{\n\t// set the overall mutation rate\n\tinitializeMutationRate(1e-7);\n\t\n\t// m1 mutation type: neutral\n\tinitializeMutationType(\"m1\", 0.5, \"f\", 0.0);\n\t\n\t// g1 genomic element type: uses m1 for all mutations\n\tinitializeGenomicElementType(\"g1\", m1, 1.0);\n\t\n\t// uniform chromosome of length 100 kb\n\tinitializeGenomicElement(g1, 0, 99999);\n\t\n\t// uniform recombination along the chromosome\n\tinitializeRecombinationRate(1e-8);\n}\n\n// create a population of 500 individuals\n1\n{\n\tsim.addSubpop(\"p1\", 500);\n}\n\n// run to generation 10000\n10000\n{\n\tsim.simulationFinished();\n}"