Update app.R
Browse files
app.R
CHANGED
@@ -1,33 +1,31 @@
|
|
1 |
library(shiny)
|
2 |
library(shinyjs)
|
|
|
3 |
library(shinythemes)
|
4 |
-
library(shinycssloaders)
|
5 |
library(GWalkR)
|
6 |
|
7 |
-
# set global options for spinner
|
8 |
-
options(spinner.size = 1,
|
9 |
-
spinner.color.background = "#FFFFFF",
|
10 |
-
spinner.color = "lightblue")
|
11 |
-
|
12 |
|
13 |
ui <- fluidPage(
|
|
|
14 |
useShinyjs(),
|
|
|
15 |
title = "Data Explorer",
|
16 |
-
theme = shinytheme("
|
17 |
-
tags$h3(id = "title", tags$strong("Graphic-Walker Data Explorer"),style = "text-align:center;color
|
18 |
-
tags$a(href = "https://github.com/Ifeanyi55", tags$strong("Maintainer"),target = "_blank",style = "text-decoration:none;color
|
19 |
-
|
20 |
-
sidebarLayout(
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
)
|
|
|
|
|
29 |
)
|
30 |
-
|
31 |
)
|
32 |
|
33 |
server <- function(input,output,session){
|
@@ -46,7 +44,7 @@ server <- function(input,output,session){
|
|
46 |
tryCatch(
|
47 |
{
|
48 |
|
49 |
-
gwalkr(file_upload()
|
50 |
|
51 |
},
|
52 |
error = function(e){
|
|
|
1 |
library(shiny)
|
2 |
library(shinyjs)
|
3 |
+
library(shinyWidgets)
|
4 |
library(shinythemes)
|
|
|
5 |
library(GWalkR)
|
6 |
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
ui <- fluidPage(
|
9 |
+
includeCSS("styles.css"),
|
10 |
useShinyjs(),
|
11 |
+
setBackgroundColor(color = c("white","#007acc"),gradient = c("linear","radial")),
|
12 |
title = "Data Explorer",
|
13 |
+
theme = shinytheme("cerulean"),
|
14 |
+
tags$h3(id = "title", tags$strong("Graphic-Walker Data Explorer"),style = "text-align:center;color:#007acc;"),
|
15 |
+
tags$a(href = "https://github.com/Ifeanyi55", tags$strong("Maintainer"),target = "_blank",style = "text-decoration:none;color:#007acc;margin-left:1250px;margin-bottom:1000px"),
|
16 |
+
br(),br(),
|
17 |
+
sidebarLayout(sidebarPanel = "",
|
18 |
+
mainPanel(align = "center",
|
19 |
+
width = 12,
|
20 |
+
fileInput("target_upload",h5(strong("Click to Upload CSV File"),style = "color:#007acc;"),
|
21 |
+
accept = c("text/csv"),
|
22 |
+
buttonLabel = strong("Select File",style = "color:#007acc;"),
|
23 |
+
placeholder = "No file selected"),
|
24 |
+
actionButton("reset",strong("Reset"),icon = icon("refresh"),style = "color:#007acc;"),
|
25 |
+
a(href = "https://github.com/Kanaries/GWalkR",h6(strong("Learn More"),style = "color:#007acc;margin-left:-1220px;margin-top:-170px;font-size:15px;"),target = "_blank",style = "text-decoration: none;"),
|
26 |
+
gwalkrOutput(outputId = "explorer",width = "101%")
|
27 |
+
)
|
28 |
)
|
|
|
29 |
)
|
30 |
|
31 |
server <- function(input,output,session){
|
|
|
44 |
tryCatch(
|
45 |
{
|
46 |
|
47 |
+
gwalkr(file_upload())
|
48 |
|
49 |
},
|
50 |
error = function(e){
|