variant: Get Variant

get_variantsR Documentation

Get Variant

Description

[Experimental] Work with variants

Usage

get_variants(content)

get_variant(content, key)

get_variant_default(content)

Arguments

content

An R6 Content object. Returned from content_item()

key

The Variant key for a specific variant

Details

  • get_variants() returns a tibble with variant data for a content_item

  • get_variant_default() returns the default variant for a content_item

  • get_variant() returns a specific variant for a content_item (specified by key)

See Also

Other variant functions: get_variant_renderings()

Other variant functions: get_variant_renderings()

Other variant functions: get_variant_renderings()


rstudio/connectapi documentation built on Dec. 20, 2024, 1:48 p.m.