R/app_ui.R

#' @import shiny
#' @import DT
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 
    fluidPage(
      h1("apptest"),
      tags$img(
        src = "www/bm.jpeg"
      ),
      tags$img(
        src = "www/Torment-Black_Metal.jpg"
      ),
      tags$img(
        src = "www/watain.jpg"
      ), 
      DTOutput("iris")
    )
  )
}

golem_add_external_resources <- function(){
  
  addResourcePath(
    'www', system.file('app/www', package = 'apptest')
  )
 
  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")
  )
}
ColinFay/apptest documentation built on May 9, 2019, 2:32 p.m.