new_model_butcher() will instantiate the following to help us develop new axe functions around removing parts of a new modeling object:

  • Add modeling package to Suggests

  • Generate and populate an axe file under R/

  • Generate and populate an test file under testthat/

new_model_butcher(model_class, package_name, open = interactive())

Arguments

model_class

A string that captures the class name of the new model object.

package_name

A string that captures the package name from which the new model is made.

open

Check if user is in interactive mode, and if so, opens the new files for editing.