DanOvando / marlin

A package for simulating 2-D populations of fauna, fisheries, and marine protected areas
https://danovando.github.io/marlin
Mozilla Public License 2.0
4 stars 3 forks source link

Optimize MPA vignette - Error (Chunk 5) #81

Closed echelleburns closed 7 months ago

echelleburns commented 2 years ago

There is an error in chunk 5 (Quotas) when running the code:

sim_quota <- simmar(fauna = fauna,
                  fleets = fleets,
                  years = years,
                  manager = list(quotas = list(bigeye = 15)))

Error reads: Error in if (manager$quotas[[names(fauna)[f]]] < sum(c_p_a_fl, na.rm = TRUE)) { : argument is of length zero