This function does the setup for your package to use vegawidget functions:
adds vegawidget to "Imports" in your package's DESCRIPTION file
creates R/utils-vegawidget.R
encourages you to take the steps outlined in Details
use_vegawidget(s3_class_name)
character
, name of an S3 class for object to
be coerced to a vegaspec
invisible NULL
, called for side effects
You will have to edit R/utils-vegawidget.R
:
add the code within your class's method for
to coerce your object to a vegaspec
.
at your discretion, delete references to functions you do not want to re-export.