Skip to content

Blur 'HTML' Elements in 'Shiny' Applications Using 'Spoiler-Alert.js'

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

etiennebacher/spoiler

Repository files navigation

spoiler

The goal of {spoiler} is to blur any HTML elements (text, plots, etc.) in R Shiny apps, so that spoilers are avoided. This is an adaptation of spoiler-alert.js.

Installation

You can install {spoiler} with:

install.packages("spoiler")

Install the development version with:

# install.packages("devtools")
devtools::install_github("etiennebacher/spoiler")

Demo

library(shiny)
library(spoiler)

# works better in browser

ui <- fluidPage(
  use_spoiler(),
  column(
    4,
    spoiler(plotOutput("test"))
  ),
  hide_spoilers(max = 10, partial = 4)
)

server <- function(input, output, session) {
  
  output$test <- renderPlot(plot(mtcars$mpg))
  
}

shinyApp(ui, server)

About

Blur 'HTML' Elements in 'Shiny' Applications Using 'Spoiler-Alert.js'

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages