There is an R helper package to build, run and analyse simulations. The vignette can be downloaded here.
To install it and look at the vignette explaining how to use it, type in R :
only the first time you use it:install.packages("devtools") install_github("kevinwolz/hisafer", ref = "updates2025")
if this doesn't work, you should upgrade your R version to the latest version
then you just need to type:
library(hisafer)
hip <- define_hisafe(path = "D:/mydocs/modelling/hisafe/simulations", profiles = "all", SimulationName="basicAF",
template = "agroforestry") #path to where you want your simulations to be (please no space nor special characters in path)
build_hisafe(hip = hip)
run_hisafe(hip = hip, simu.names = "all",
parallel = FALSE,
capsis.path = "C:/ProgramFiles/HisAFe/capsis") #path to where you installed capsis (please no space nor special characters in path)
hip <- define_hisafe(path = “D:/mydocs/modelling/hisafe/simulations”, profiles = “all”, SimulationName=”basicAF”,
template = “agroforestry”) #path to where you wnt your simulations to be (please no space nor special characters in path)
build_hisafe(hip = hip)
run_hisafe(hip = hip, simu.names = “all”,
parallel = FALSE,
capsis.path = “C:/ProgramFiles/HisAFe/capsis”) #path to where you installed capsis (please no space nor special characters in path)