I'm new to R too, I hope I can help you.
I have met the same problem, it is because the working directory path of the R is inconsistent with the file storage directory path.
At first you should use getwd() to get the current working directory of R. Then there are two ways to solve your problem.
You can put the file into this directory. Or you can copy the working directory path and use setwd('your path')