Skip to content
/ spoiler Public

❗ This is a read-only mirror of the CRAN R package repository. spoiler — Blur 'HTML' Elements in 'Shiny' Applications Using 'Spoiler-Alert.js'. Homepage: https://github.com/etiennebacher/spoiler Report bugs for this package: https://github.com/etiennebacher/spoiler/issues

License

Notifications You must be signed in to change notification settings

cran/spoiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Installation

You can install the GitHub version of {spoiler} 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

❗ This is a read-only mirror of the CRAN R package repository. spoiler — Blur 'HTML' Elements in 'Shiny' Applications Using 'Spoiler-Alert.js'. Homepage: https://github.com/etiennebacher/spoiler Report bugs for this package: https://github.com/etiennebacher/spoiler/issues

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages