To determine if a file named thesis_data.csv exists in your working directory
you can use the code to get a list of available files and directories:
list.files()
%in% operator to write a conditional statement that checks to see
if thesis_data.csv is in this list.if statement that loads the file using read.csv() only if the
file exists.else clause that prints “OMG MY THESIS DATA IS MISSING. NOOOO!!!!”
if the file doesn’t exist.