I am getting a very strange issue when using R-Markdown and when I press KNITR. Each time I run the script I get the error below.
Error in
read.csv(url("https://www.nomisweb.co.uk/api/v01/dataset/NM_1_1.data.csv?geography=1249902593...1249909543&date=latestMINUS2-latest&sex=7&item=1&measures=20100"))
: could not find function "read.csv"
This code does not feature in my script and exists in another document that I had created. I have changed the folder directory, cleared the environment. Yet this annoying error keeps appearing when pressing KNITR. I have created a new file, directory everything yet it keeps appearing.
I would be grateful for any pointers.