Nothing
#!/usr/bin/env Rapp
#| name: ls-r
#| description: List files matching chained regular expressions.
# c() means, option that can be supplied multiple times. c() does no parsing / YAML interpretation
#| short: p
#| description: Regular expression filter, the union of multiple matches is returned.
pattern <- c()
# message("filter patterns: ", paste0("`", pattern, "`", collapse = " "))
#| description: Directory whose files will be listed.
#| arg-type: positional
#| required: false
root <- "."
paths <- list.files(root, all.files = FALSE, no.. = TRUE)
paths <- sort(unique(unlist(
lapply(pattern, grep, paths, value = TRUE)
)))
env <- as.list.environment(environment())
env$root <- NULL
writeLines(yaml12::format_yaml(env))
# writeLines(paths)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.