Skip to content

Commit

Permalink
create application skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
hdykiel committed Sep 30, 2019
1 parent 3d0eaf4 commit 7053205
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# uwdashboard
an example underwriting dashboard
example of an underwriting dashboard

## Files
app.R - shiny application
46 changes: 46 additions & 0 deletions app.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## app.R ##
library(shiny)
library(shinydashboard)

ui <- dashboardPage(
dashboardHeader(title = "Underwriting Dashboard"),
dashboardSidebar(
sidebarMenu(
# Dashboard
menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard")),
# Report
menuItem("Policy Report", tabName = "report", icon = icon("chart-line")),
# Control widget
selectInput(inputId = "category", label = "Select input",
choices = c("Option 1", "Option 2"),
selected = "Option 1", multiple = TRUE)
)
),
dashboardBody(
tabItems(
# First tab
tabItem(tabName = "dashboard",
fluidRow(
# Box 1
box("placeholder text", width = 7),

# Box 2
box("placeholder text", width = 5)
)
),

# Second tab
tabItem(tabName = "report",
# tab content
box("placeholder text")

)
)
)
)

server <- function(input, output) {

}

shinyApp(ui, server)
12 changes: 12 additions & 0 deletions rsconnect/colorado.rstudio.com/hadrien/underwriting_dashboard.dcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: underwriting_dashboard
title: Underwriting Dashboard
username: hadrien
account: hadrien
server: colorado.rstudio.com
hostUrl: https://colorado.rstudio.com/rsc/__api__
appId: 2890
bundleId: 27234
url: https://colorado.rstudio.com/rsc/content/2890/
when: 1569448590.95844
asMultiple: FALSE
asStatic: FALSE
13 changes: 13 additions & 0 deletions uwdashboard.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

0 comments on commit 7053205

Please sign in to comment.