file_explorer: file_explorer

Description Usage Arguments Value Examples

View source: R/file_explorer.R

Description

file_explorer

Usage

1
2
3
4
file_explorer(
  path = getwd(),
  viewer = getOption(x = "servers.tools.viewer", default = "dialog")
)

Arguments

path

Custom path accessible by default

viewer

Where to display the gadget: "dialog", "pane" or "browser" (see viewer).

Value

UI gadget

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
library(shiny)
library(shinyFiles)
library(shinyTree)
# shinyFiles::shinyFilesExample()
file_explorer()

# Use with custom path
cat("test", file = tempfile("custom", fileext = ".R"))
file_explorer(path = tempdir())

## End(Not run)

statnmap/servers.tools documentation built on Feb. 6, 2022, 9:44 p.m.