Learn R Programming

tangram (version 0.8.2)

custom_css: 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)

Value

String of possibly modified CSS file

Arguments

filename

Name of the CSS file to load

id

CSS id to prepend to all entries

Examples

Run this code
custom_css("lancet.css", "tbl1")

Run the code above in your browser using DataLab