Kaynağa Gözat

Shiny skeleton

master
Maxime Wack 6 yıl önce
ebeveyn
işleme
20c347ac84
1 değiştirilmiş dosya ile 16 ekleme ve 4 silme
  1. +16
    -4
      app.R

+ 16
- 4
app.R Dosyayı Görüntüle

@@ -9,11 +9,23 @@ options(DT.options = list(paging = F,
dom = "Bfrtip",
buttons = c("copy", "excel")))

url <- "https://en.wikipedia.org/wiki/Comparison_of_file_comparison_tools"
ui <- fluidPage(
inputPanel(
textInput("wiki_url", "Wikipedia comparison page"),
actionButton("go", "Load tables")
)
)

server <- function(input, output, session)
{
tables <- eventReactive(input$go,{
GET(url) %>%
content %>%
html_table(fill = T)
})
}


GET(url) %>%
content %>%
html_table(fill = T) %>%
reduce(inner_join) %>%
mutate_if(is.character, factor) %>%
datatable(filter = "top")

Yükleniyor…
İptal
Kaydet