#' @import shiny
#' @import shinydashboard
app_ui <- function() {
tagList(
# Leave this function for adding external resources
# from inst/app/www
golem_add_external_resources(),
golem::js(),
golem::favicon(),
# List the first level UI elements here
dashboardPage(
dashboardHeader(
title = "Package Explorer"
),
dashboardSidebar(
selectizeInput(
inputId = "tags",
label = "Tags",
choices = unique(unlist(packages[["tags"]])),
selected = NULL,
multiple = TRUE
)
),
dashboardBody(
fluidRow(
column(
width = 6,
uiOutput("recommended_packages")
),
column(
width = 6,
uiOutput("not_recommended_packages")
)
)
)
)
)
}
golem_add_external_resources <- function(){
addResourcePath(
'www', system.file('app/www', package = 'packagerecs')
)
tagList(
# Add here all the external resources
# If you have a custom.css in the inst/app/www
#tags$link(rel="stylesheet", type="text/css", href="www/custom.css")
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.