pfmc-assessments / indexwc

Estimate indices of abundance for west coast fish species
2 stars 1 forks source link

[Bug]: where is `lookup_formula()`? #15

Closed iantaylor-NOAA closed 1 year ago

iantaylor-NOAA commented 1 year ago

While trying to run the following code

run(data, 
  family = sdmTMB::delta_lognormal(), 
  formula = lookup_formula("WCGBTS"))

using the example in the documentation at https://github.com/kellijohnson-NOAA/indexwc/blob/e49d1ba3267a4b2e7e2285f69dba60d90208ef32/R/run.R#L38-L42 I get the error ! could not find function "lookup_formula". I don't see that function anywhere in the package other than in documentation of run().

iantaylor-NOAA commented 1 year ago

This was resolved by the use of the configuration file in commit by @kellijohnson-NOAA: 68f44d0272d794384be1e9bea30266398cbc58f4.

More documentation of the process shown in data-raw/configuration.R would be useful in the future, but that's outside the scope of this issue.