All Projects β†’ JohnCoene β†’ linne

JohnCoene / linne

Licence: other
🌊 Write CSS in R

Programming Languages

r
7636 projects
CSS
56736 projects

Labels

Projects that are alternatives of or similar to linne

CENTIPEDE.tutorial
πŸ› How to use CENTIPEDE to determine if a transcription factor is bound.
Stars: ✭ 23 (-67.14%)
Mutual labels:  rstats
fnmate
A function definition generator.
Stars: ✭ 74 (+5.71%)
Mutual labels:  rstats
ggchicklet
πŸ€« Create Chicklet (Rounded Segmented Column) Charts
Stars: ✭ 130 (+85.71%)
Mutual labels:  rstats
simputation
Making imputation easy
Stars: ✭ 71 (+1.43%)
Mutual labels:  rstats
individual
R Package for individual based epidemiological models
Stars: ✭ 20 (-71.43%)
Mutual labels:  rstats
DataViz-Teaching
πŸ“ˆ Visualizations for DataViz Teaching
Stars: ✭ 29 (-58.57%)
Mutual labels:  rstats
rLandsat
R Package to make Landsat8 data accessible
Stars: ✭ 95 (+35.71%)
Mutual labels:  rstats
cyphr
Humane encryption
Stars: ✭ 91 (+30%)
Mutual labels:  rstats
meetup-presentations buenosaires
R-Ladies Buenos Aires recursos
Stars: ✭ 23 (-67.14%)
Mutual labels:  rstats
ciencia datos
El curso en espaΓ±ol, de acceso abierto y gratuito mΓ‘s grande del mundo sobre Ciencia de Datos en salud.
Stars: ✭ 66 (-5.71%)
Mutual labels:  rstats
styles
Custom themes for base plots
Stars: ✭ 32 (-54.29%)
Mutual labels:  rstats
pkgreviewr
R package to facilitate rOpenSci package reviews.
Stars: ✭ 35 (-50%)
Mutual labels:  rstats
tiler
Generate geographic and non-geographic map tiles from R
Stars: ✭ 56 (-20%)
Mutual labels:  rstats
casewhen
Create reusable dplyr::case_when() functions
Stars: ✭ 64 (-8.57%)
Mutual labels:  rstats
antiword
R wrapper for antiword utility
Stars: ✭ 47 (-32.86%)
Mutual labels:  rstats
mobileCharts
Mobile friendly charts with a familiar syntax
Stars: ✭ 23 (-67.14%)
Mutual labels:  rstats
riem
✈️ β˜€οΈ R package for accessing ASOS data via the Iowa Environment Mesonet ☁️ ✈️
Stars: ✭ 38 (-45.71%)
Mutual labels:  rstats
pbapply
Adding progress bar to '*apply' functions in R
Stars: ✭ 115 (+64.29%)
Mutual labels:  rstats
rbcb
R interface to Brazilian Central Bank web services
Stars: ✭ 63 (-10%)
Mutual labels:  rstats
tidytuesday
πŸ“Š πŸ–ŒοΈ Data visualization collection
Stars: ✭ 70 (+0%)
Mutual labels:  rstats

R-CMD-check AppVeyor build status Coveralls test coverage

CSS in R

Website | Get Started

Installation

Install the stable version from CRAN.

install.packages("linne")

Or install the development version from Github.

# install.packages("remotes")
remotes::install_github("JohnCoene/linne")

Example

{linne} contains a single reference class which comes with just a few core methods. Always start with the new method to instantiate a new class.

library(linne)

linne <- Linne$new()

There are two core methods to {linne}:

  • define - Define a global variable
  • rule - Add a CSS rule

Let's say you want to change the look and feel of this button in a shiny application.

actionButton(inputId = "myButton", label = "Click me")

Using {linne} we define a CSS rule with the rule method to change how it looks.

library(linne)

linne <- Linne$
  new()$
  rule(
    sel_input("myButton"), # inputId = "myButton"
    backgroundColor = 'red', 
    fontSize = 20,
    color = "white"
  )

{linne} will automatically convert integers and numerics to pixels, therefore the above changes the font size to 20 pixels.

library(linne)
library(shiny)

ui <- fluidPage(
  linne$include(), # include the CSS
  actionButton(inputId = "myButton", label = "Click me")
)

server <- function(input, output){}

shinyApp(ui, server)

Code of Conduct

Please note that the linne project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].