Checking for file path before import in R.
file_path_checking(file_path, extension, output = "error")
Object of class character
expected. File location on your system.
Object of class vector
of character expected. Expected extension type set (avoid the . before the extension).
character expected. Kind of expected output. By default "error". You can choose between "error", "message" or "logical".