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.
The goal of {scoutbaR}
is to provide an R API to the
scoutbar
React widget.
You can install the development version of {scoutbaR}
from GitHub with:
# install.packages("devtools")
::install_github("cynkra/scoutbaR") devtools
{scoutbaR}
is easy to use. The app below shows how to
leverage scout_action()
, scout_section()
and
scout_page()
:
library(scoutbaR)
library(shiny)
library(bslib)
<- page_fillable(
ui title = "Penguins dashboard",
layout_sidebar(
sidebar = sidebar(
input_dark_mode(id = "theme"),
actionButton("update", "Update", icon = icon("house")),
scoutbar(
"scoutbar",
actions = list(
scout_section(
label = "Section 1",
scout_action(
id = 1,
icon = "house",
label = "1",
description = "1"
),scout_action(
id = 2,
icon = "gear",
label = "2",
description = "2"
)
),scout_section(
label = "Section 2",
scout_page(
label = "Page 1",
scout_action(
id = 3,
icon = "house",
label = "3",
description = "3"
),scout_action(
id = 4,
icon = "gear",
label = "4",
description = "4"
)
),scout_action(
id = 5,
icon = "gear",
label = "5",
description = "5"
)
)
)
),textOutput("textOutput"),
textOutput("current_tab")
),"Body"
)
)
<- function(input, output, session) {
server
observeEvent(input$update, {
update_scoutbar(session, "scoutbar", revealScoutbar = TRUE)
})
observeEvent(input$theme, {
update_scoutbar(session, "scoutbar", theme = input$theme)
})$textOutput <- renderText({
outputsprintf("You entered: %s", input$scoutbar)
})
}
shinyApp(ui, server)
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.