Here are two possibly related problems with auto_manage code:
R CMD check reports possible problems for the auto_manage function. Here are the results:
checking R code for possible problems ... NOTE
auto_manage: no visible binding for global variable ‘infected’
auto_manage: no visible global function definition for ‘stack’
auto_manage: no visible binding for global variable ‘host’
auto_manage: no visible global function definition for ‘nlayers’
auto_manage: no visible binding for global variable ‘num_cells’
auto_manage: no visible binding for global variable ‘buffer_cells’
auto_manage: no visible binding for global variable ‘random_seeds’
auto_manage: no visible binding for global variable ‘exposed’
auto_manage: no visible binding for global variable ‘total_populations’
auto_manage: no visible binding for global variable ‘mortality_tracker’
auto_manage: no visible binding for global variable ‘mortality’
auto_manage: no visible binding for global variable ‘quarantine_areas’
Function is ignoring config or needs some explanation: The auto_manage function takes parameters, adds them to config list, but then config is not used to set parameters in the pops_model call. If this is an intention, it should be documented in a comment. If not, it should be fixed.
Here are two possibly related problems with auto_manage code: