Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bs_attr

Convert a value to be used as an html attribute


Description

  • character vectors collapsed to a space-delimited character string

  • logicals are converted to "true" or "false"

  • lubridate durations are converted to numeric (milliseconds)

  • lists are converted to JSON, Limitation: lubridate::duration() objects within lists will not translate correctly

Usage

bs_attr(x)

bs_attr.default(x)

bs_attr.logical(x)

bs_attr.list(x)

bs_attr.Duration(x)

bs_attr(x)

## S4 method for signature 'logical'
bs_attr(x)

## S4 method for signature 'list'
bs_attr(x)

## S4 method for signature 'Duration'
bs_attr(x)

Arguments

x

value to be converted

Value

character


bsplus

Adds Functionality to the R Markdown + Shiny Bootstrap Framework

v0.1.2
MIT + file LICENSE
Authors
Ian Lyttle [aut, cre, cph] (<https://orcid.org/0000-0001-9962-4849>), Schneider Electric [cph], Alex Shum [ctb], Emily Bosak [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.