custom_css {tangram}R Documentation

Return a CSS file as a string

Description

Given a filename, this function will load the file name from the current working directory. If it is not found from the current working directory it will search in the package for a a matching filename and load that instead. If an id is specified, that will be prepended to all CSS selectors (TODO: make this substitution more robust). The result is returned as a string.

Usage

custom_css(filename, id = NA)

Arguments

filename

Name of the CSS file to load

id

CSS id to prepend to all entries

Value

String of possibly modified CSS file

Examples

custom_css("lancet.css", "tbl1")

[Package tangram version 0.8.2 Index]