vignettes/contributing.Rmd
contributing.Rmd
see safe_predict.lm()
for example
the zoo of formulas to use to test the formula interface
## function signature
## input validation works
# - error on missing `new_data`
# - error on bad `type`
# - error on bad `std_error`
# - error on bad `level` - include 0 or 1
# - warning on mispelled argument (via ellipsis)
## input edge cases
# - missing data
# - spline trap
# - single observation
# - repeated observations
## checks on returned predictions
# - correct class given type
# - in a tibble
# - correct number of rows
# - level and interval attributes for type = conf_int and type = pred_int
# - correct column names given type