vegawidget (version 0.1.0)

use_vegawidget: Add vegawidget functions to your package

Description

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

Usage

use_vegawidget(s3_class_name)

Arguments

s3_class_name

character, name of an S3 class for object to be coerced to a vegaspec

Value

invisible NULL, called for side effects

Details

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.