initializeProgram.Rd
Function to initialize the simulation. Read the founder genetic architecture and population genetic parameters. Create simulation data structures.
initializeProgram(founderFile, schemeFile, costFile, optimizationFile)
founderFile | String name of the text file with parameters governing the founders and the genetic architecture |
---|---|
schemeFile | String name of the text file with parameters governing the variety development pipeline and selection functions |
Named list containing the `AlphaSimR` SP file, breedingPop the breeding population, varietyCand an empty pop for variety candidates, phenoRecords an empty tibble for phenotype records
Call this function at the beginning of the simulation
bsd <- initializeProgram("FounderCtrlFile.txt", "SchemeCtrlFile.txt", "CostsCtrlFile.txt", "OptimizationCtrlFile.txt")#> Warning: cannot open file 'FounderCtrlFile.txt': No such file or directory#> Error in file(con, "r"): cannot open the connection