I\'ve created a R markdown file that starts by loading a file from the web. I found the cache=TRUE to be a little flaky so I want to put an if condition in to check for the
An easy way to check the existence of a file in your working directory is:
which(list.files() == "nameoffile.csv")
This doesn't exactly answer his question but I thought this might be helpful to someone who simply wants to check if a particular file is there in their directory.