check_path_file
just checks that path and file names are correct, and that the former
corresponds to a valid path.
Usage
check_path_file(pathname = pathname, filename = filename)
Arguments
- pathname
character
string with valid path to a folder.
- filename
character
string specifying the name of the file with its extension.
Examples
# Create a silly example text file.
sink("example.100")
i <- 1:10
outer(i, i)
sink()
check_path_file(getwd(), "example.100")
# Remove the silly example text file.
invisible(file.remove("example.100"))