Learn R Programming

linne (version 0.0.2)

convenience: Convenience Functions

Description

Convenience functions for common operations.

Usage

important_(value)

url_(value)

rgb_(r, g, b)

rgba_(r, g, b, a = 0.5)

Arguments

value

Value to use.

r, g, b, a

Red, green, blue, and alpha values.

Functions

  • important_() - Makes it such that the rule cannot be overwritten by other rules (other selections).

  • rgb_(), rgba_() - Functions for red, green, blue and alpha for transparency.

  • url_() - Wrap in a url CSS function call.

Examples

Run this code
# NOT RUN {
Linne$
 new()$
 rule(
   sel_id("id"),
   color = rgba_(255, 255, 255, .6),
   fontSize = important_(20)
 )

# }

Run the code above in your browser using DataLab