Package 'servers.tools'

Title: Extra Tools For Server Use
Description: Use tools.
Authors: Sebastien Rochette [aut, cre] (ORCID: <https://orcid.org/0000-0002-1565-9313>), ThinkR [cph]
Maintainer: Sebastien Rochette <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2026-06-02 07:55:52 UTC
Source: https://github.com/statnmap/servers.tools

Help Index


file_explorer

Description

file_explorer

Usage

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

## 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)

List file in subdirectory

Description

List file in subdirectory

Usage

listFiles(path, maxDepth = 4, currentDepth = 1)

Arguments

path

path to explore

maxDepth

max depth to explore folders

currentDepth

opened depth

Value

Tree list object