use_vegawidget: Add vegawidget functions to your package

Description Usage Arguments Details Value

View source: R/use-vegawidget.R

Description

These functions are offered to help you import and re-export vegawidget functions in your package.

Usage

1
2
3

Arguments

s3_class_name

character, name of an S3 class for object to be coerced to a vegaspec; default (NULL) implies no additional class

Details

use_vegawidget():

Adds vegawidget functions:

In practical terms:

If you have your own S3 class for a spec, specify the s3_class_name argument. You will have to edit R/utils-vegawidget-<s3_class_name>.R:

use_vegawidget_interactive():

If you want to add the JavaScript and Shiny functions, use this after running use_vegawidget(). It adds:

In practical terms:

Value

invisible NULL, called for side effects


vegawidget documentation built on Jan. 23, 2020, 1:06 a.m.