R test if a file exists, and is not a directory

前端 未结 3 942
[愿得一人]
[愿得一人] 2021-01-07 22:21

I have an R script that takes a file as input, and I want a general way to know whether the input is a file that exists, and is not a directory.

In Python you would

3条回答
提交回复
热议问题