comparison rmarkdown_report_render.R @ 13:6de40bffd5e3 draft default tip

planemo upload commit 09b6a41798350090b61aea16966ba64b583ef02b-dirty
author mingchen0919
date Sat, 09 Jun 2018 23:40:45 -0400
parents 4eac97053f9d
children
comparison
equal deleted inserted replaced
12:4eac97053f9d 13:6de40bffd5e3
88 { 88 {
89 if (length(dirs) > 0) { 89 if (length(dirs) > 0) {
90 lapply(dirs, function(x) { 90 lapply(dirs, function(x) {
91 path_end = tail(strsplit(x, '/')[[1]], 1) 91 path_end = tail(strsplit(x, '/')[[1]], 1)
92 # hide vakata-jstree-3.3.5 folder 92 # hide vakata-jstree-3.3.5 folder
93 if (!(path_end %in% c('vakata-jstree-3.3.5', 'rmarkdown_report_files'))) { 93 if (!(path_end %in% c('vakata-jstree-3.3.5', 'rmarkdown_report_files', 'site_libs'))) {
94 # x_path = strsplit(x, paste0(output_dir, '/'))[[1]][2] 94 # x_path = strsplit(x, paste0(output_dir, '/'))[[1]][2]
95 li_item = tags$li(path_end, file_tree(x)) 95 li_item = tags$li(path_end, file_tree(x))
96 li_item$attribs = list('data-jstree' = '{"icon":"jstree-folder"}') 96 li_item$attribs = list('data-jstree' = '{"icon":"jstree-folder"}')
97 li_item 97 li_item
98 } 98 }