ropensci / nlrx

nlrx NetLogo R
https://docs.ropensci.org/nlrx
GNU General Public License v3.0
77 stars 12 forks source link

Missing argument #68

Closed nik1393 closed 2 years ago

nik1393 commented 2 years ago

Hello!

I just started to go into nlrx. For now I'm trying just to run a test analysis from the tutorial. But instead of the library model, I'm using my own model. Everything was fine before I tried to set an experiment. I got an error

Error in list(Natural_fires = "false", Ignited_patches = 0, Humans = "true", : argument 26 is empty"

There's the part of the code where I get en error message:

nl@experiment <- experiment(expname = "test", outpath = outpath, repetition = 1, tickmetrics = "true", idsetup = "setup", idgo = "go", runtime = 300, evalticks = seq(0,300), metrics=c("count patches with [patch_pft_new = 1 or patch_pft_new = 0]"), variables = list("Number_of_groups" = list(min=1, max=10, step=5, qfun="qunif"), "Foraging_area" = list(min=0, max=4, step=2, qfun="qunif")), constants = list("Natural_fires" = "false", "Ignited_patches" = 0 , "Humans" = "true", "Megafauna_impact" = "false" ))

Could you please help me with this error?

Thank you in advance!

nik1393 commented 2 years ago

The problem is solved