Learn R Programming

charlatan (version 0.2.2)

FileProvider: FileProvider

Description

FileProvider

Usage

file_provider_locales

Arguments

locale

(character) the locale to use. Run file_provider_locales() for locales supported (default: en_US)

Format

An object of class character of length 1.

Details

Methods

  • mime_type(category) - mime type

  • file_name(category(NULL, extension) - file name

  • file_extension(category) - file extension

  • file_path(depth(1, category(NULL, extension) - file path

Examples

Run this code
# NOT RUN {
(x <- FileProvider$new())
x$locale 
x$mime_type()
x$file_extension()
x$file_name()
x$file_path()
x$file_path(depth = 2)
x$file_path(depth = 3)
x$file_path(depth = 6)
# }

Run the code above in your browser using DataLab