Checking for file path before import in R.

file_path_checking(file_path, extension, output = "message")

Arguments

file_path

Object of class character expected. File location on your system.

extension

Object of class vector of character expected. Expected extension type set (avoid the . before the extension).

output

character expected. Kind of expected output. By default "message". You can choose between "message" or "logical".