The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The goal of {prompter}
is to easily create tooltips on many HTML elements in Shiny apps. This is the adaptation of hint.css
in R.
You can install the CRAN version:
Or install the development version:
library(prompter)
library(shiny)
library(ggplot2)
library(magrittr)
ui <- fluidPage(
# Load the dependencies
use_prompt(),
column(
3,
# Put the element inside add_prompt()...
add_prompt(
actionButton("plot", "click"),
position = "bottom", message = "this is a button"
)
),
column(
9,
# ... or use magrittr's pipe
plotOutput("plot") %>%
add_prompt(
message = "this is a plot, and I add some text to show the size of the box.",
position = "left", type = "error",
size = "medium", rounded = TRUE
)
)
)
server <- function(input, output, session) {
output$plot <- renderPlot(ggplot(mtcars, aes(wt, mpg))+ geom_point())
}
shinyApp(ui, server)
Here’s the output of this code:
Please note that the prompter project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Kushagra Gour for the original hint.css
library.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.