File: An obligatory wrapper for file names (paths)

View source: R/common.R

FileR Documentation

An obligatory wrapper for file names (paths)

Description

This function must be used

  • in the arguments of function fun (passed to makeApp or makeFiles) and/or

  • in the value returned by fun

to wrap the character string indicating a path respectively

  • to an input file ("consumed" by fun or

  • to an output file ("produced" by fun as a side effect).

Otherwise autoshiny cannot distinguish file paths from character strings.

Usage

File(x)

Arguments

x

A string, i.e. character vector of length 1, indicating a file path to an existing file.

Value

x with an S3 class attribute "file".


autoshiny documentation built on March 31, 2023, 9:37 p.m.