-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
28 lines (19 loc) · 1.11 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
setwd("~/ShinyApps/list") # set your directory list application, example: list
url <- "http://shiny.leg.ufpr.br" # insert your url, example: http://200.17.213.89:3838
user <- "daniel" # insert yor username, example: daniel
directory <- list.dirs(path = "../", full.names = FALSE, recursive = FALSE)
directory <- directory[directory != "log" ] # exclude directory log files
directory <- directory[directory != "list"] # exclude directory list application
directory <- directory[directory != "general"] # exclude directory list application
url.list <- lapply(directory,
function(x){
do.call(tags$a, c(list(href=paste(url, user, x, sep="/"), target="_blank"), x))
})
shinyUI(fluidPage(theme = "styles.css",
headerPanel("Shiny Apps"),
tags$html("Example"), # insert your text here
sidebarLayout(
tags$ol(lapply(url.list[1:length(directory)],tags$li)),
mainPanel()
)
))