Learn R Programming

animl (version 3.2.0)

check_file: Check for files existence and prompt user if they want to load

Description

Check for files existence and prompt user if they want to load

Usage

check_file(file, output_type)

Value

a boolean indicating wether a file was found and the user wants to load or not

Arguments

file

the full path of the file to check

output_type

str to specify file name in prompt description

Examples

Run this code
if (FALSE) {
  check_file("path/to/newfile.csv")
}

Run the code above in your browser using DataLab