Does the input contain a file?
Examples
## TRUE ====
x <- "example.txt"
file.create(x)
#> [1] TRUE
isAFile(x)
#> [1] TRUE
unlink(x)
## FALSE ====
isFile(c("~", "."))
#> [1] FALSE FALSE
Does the input contain a file?
## TRUE ====
x <- "example.txt"
file.create(x)
#> [1] TRUE
isAFile(x)
#> [1] TRUE
unlink(x)
## FALSE ====
isFile(c("~", "."))
#> [1] FALSE FALSE