Learn R Programming

beautier (version 2.6.12)

check_filename: Check if the `filename` is valid

Description

Calls stop if the filename is invalid

Usage

check_filename(filename, allow_empty_str = FALSE, allow_na = FALSE)

Value

The filename (invisibly)

Arguments

filename

a filename, as can be checked by check_filename

allow_empty_str

allow a string to be empty

allow_na

allow NA

Author

Richèl J.C. Bilderbeek

Examples

Run this code
check_empty_beautier_folder()

check_filename("trace.log")
check_filename("my.trees")

check_empty_beautier_folder()

Run the code above in your browser using DataLab