ytable_age_slice, ytable_max_slice,
site_index, ytable_lookup, si_to_mai_age, si_to_mai_max, and
stocking_level were made more safe. These functions are not designed for
working with input variable vectors of length > 1. However, under certain
circumstances such input would trigger a warning, but produce dubious results.
Now, any attempt to provide input vectors with more than one element to these
functions results in an error.Revised CRAN submission
We have addressed the issues raised by Konstanze Lauseker in her review of the initial submission:
DESCRIPTION file.::: even in internal documentation.\dontrun{} with try() for examples that intentionally generate
errors.options(warn = -1) with suppressWarnings() in the automated
tests.Initial CRAN submission.