Skip to content

issues running vignette #13

@mkapur-noaa

Description

@mkapur-noaa

Hi There
I'm working through the vignette and noticed a few issues. Some have been reported by other users, but I noticed that a couple are >2 years old and haven't yet been addressed. For that reason, I'm opening a single issue with several notes.

Would you recommend that users clone & modify their own local version of the package, if this version is no longer to be maintained? I understand it's a big lift to maintain a package, so wanted to check before moving forward for research purposes.

Here's what I've come upon. Will continue to add as I find issues.

  • Big-picture, the package depends on two deprecated CRAN pacakges: RandomFields and sf. The former must be manually installed from the tarball archive.
  • The vignette does not have arguments passed to init_popfor wt nor wtm1; the default values for these are of length 1 which is not the same length as the number of species in the example (2). The user needs to pass c('spp1' = 1, 'spp2' = 1) (or some other number) to both variables for the vignette to run.
  • As indicated by @Blevy2 in this issue, the number of fishing days is fixed to five. This causes the vignette to fail if the user changes the number of fishing days when init_fleet is run since there's a mismatch in the dimensions.
  • run_sim fails with an error about catches not being the right dimensions; it took me several hours to track this down to an issue online 5 of sum_fleet_catches where it wants to sum across sp_fleets_catches though those values are all NULL (they don't seem to get populated by the go_fish routine).
  • I recognize that an example of init_survey is not in the vignette, but when I run the function with the default settings, run_sim fails at line 421 because 1) the default output for Q is of length 1 (not 2, one for each species) and 2) the colnames under survey$surveysettings needs to match the lookup syntax ("Qs.spp1"), not "Qs1".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions