ThinkR-open / tremousser

📦 R package to build charts and dashboards in Shiny

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

{tremousser}

Lifecycle: experimental R-CMD-check

The goal of {tremousser} is to help you to build beautiful and efficient Shiny applications.

{tremousser} is a package that provides a set of functions around the Tremor React library.

Installation

You can install the development version of tremousser from GitHub with:

# install.packages("devtools")
devtools::install_github("ThinkR-open/tremousser")

Example

More examples to come

library(tremousser)
library(shiny)

shinyApp(
  ui = tagList(
    tags$body(
      class = "flex gap-x-1 items-center justify-center h-screen bg-gray-100",
      actionButton(
        inputId = "button",
        "Click me..."
      ),
      actionButton(
        inputId = "button2",
        variant = "secondary",
        "... or me"
      ),
      actionButton(
        inputId = "button3",
        color = "pink",
        "even me!"
      ),
    )
  ),
  server = function(input, output) {
    observeEvent(input$button, {
      print("You clicked me!")
    })

    observeEvent(input$button2, {
      print("You clicked me too!")
    })

    observeEvent(input$button3, {
      print("You clicked me as well!")
    })
  }
)

Code of Conduct

Please note that the {tremousser} project is released with a Contributor Code of Conduct.

By contributing to this project, you agree to abide by its terms.

About

📦 R package to build charts and dashboards in Shiny

License:Other


Languages

Language:CSS 98.2%Language:TypeScript 0.9%Language:R 0.6%Language:JavaScript 0.2%