I am trying to knit a document but I am getting an error on the read.csv function which works fine if I run it from the RMarkdown or from the console.
I have searched but could only find solutions related to reading a csv from a URL. R read.csv from URL error in knitr
```{r}
# This analysis uses the National Names dataset
national_names_raw <- read.csv("NationalNames.csv")
```
This is the error I get...
Quitting from lines 33-35 (Popularity_of_Kier.Rmd)
Error in file(file, "rt") : cannot open the connection
Calls: <Anonymous> ... withVisible -> eval -> eval -> read.csv -> read.table -> file
Execution halted
Any help is appreciated.