Geoeasy commited on
Commit
bf3a8c1
·
verified ·
1 Parent(s): 17c4916

Delete app.R

Browse files
Files changed (1) hide show
  1. app.R +0 -58
app.R DELETED
@@ -1,58 +0,0 @@
1
- library(shiny)
2
- library(readxl)
3
- library(dlookr)
4
- library(rpivotTable)
5
-
6
- ui <- fluidPage(
7
- titlePanel("EDA no Browser – rpivotTable + dlookr"),
8
-
9
- sidebarLayout(
10
- sidebarPanel(
11
- h4("Dataset"),
12
- p("Arquivo: STATUS1.xlsx"),
13
- actionButton("diag", "Gerar diagnóstico dlookr")
14
- ),
15
-
16
- mainPanel(
17
- tabsetPanel(
18
- tabPanel("Pivot Table",
19
- rpivotTableOutput("pivot")),
20
- tabPanel("Diagnóstico",
21
- uiOutput("diag_ui"))
22
- )
23
- )
24
- )
25
- )
26
-
27
- server <- function(input, output, session) {
28
-
29
- STATUS <- reactive({
30
- read_excel("STATUS1.xlsx")
31
- })
32
-
33
- output$pivot <- renderRpivotTable({
34
- rpivotTable(STATUS())
35
- })
36
-
37
- observeEvent(input$diag, {
38
-
39
- dir.create("www", showWarnings = FALSE)
40
-
41
- diagnose_web_report(
42
- STATUS(),
43
- output_dir = "www",
44
- output_file = "diagnostico.html"
45
- )
46
-
47
- output$diag_ui <- renderUI({
48
- tags$iframe(
49
- src = "diagnostico.html",
50
- width = "100%",
51
- height = "800px",
52
- style = "border:none;"
53
- )
54
- })
55
- })
56
- }
57
-
58
- shinyApp(ui, server)