10.5 Check for the file you downloaded with list.files()
You can see what’s in your working directory using the command list.files(). Depending on how many files you have this could be a very long list. I have 40-ish files and so won’t display them.
list.files() # [ ]
If you have a ton of files being printed out you can narrow things down by telling R a text pattern to screen for.
list.files(pattern = "csv") # [ ]
## character(0)
If the file wasn’t successful downloaded R will just give you a cryptic message like this.
list.files(pattern = "xxxx")
This means the file isn’t’ there and you need to redo the download to make sure either i)the file actually downloaded and ii)file is saved where you want it to be.
What we want to see is this
## character(0)