The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
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[@]dogado.de.
Notifications in Shiny, via toastr
source("https://install-github.me/gaborcsardi/shinytoastr")
Call useToastr()
at the beginning of ui
definition, and then in the server
definition use one of
the notification functions, toastr_success()
,
toastr_info()
, toastr_warning()
or
toastr_error()
to create notifications:
library(shinytoastr)
<- shinyUI(fluidPage(
ui useToastr(),
pageWithSidebar(
headerPanel("Header"),
sidebarPanel(
...actionButton(inputId = "save_button", label = "Save",
class = "btn-primary")
...
),mainPanel(
...
)
) ))
<- function(input, output, session) {
server
...observeEvent(
$save_button,
input
{tryCatch(
{writeToDB(data)
toastr_success("Saved to database")
},error = function(e) {
toastr_error(title = "Database error", conditionMessage(e))
}
)
}
) }
MIT © John Papa, Tim Ferrell, Hans Fjällemark, Mango Solutions, Posit Software, PBC.
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.
Health stats visible at Monitor.