I was finally able to work out the code for my scraping. It seemed to be working fine and then all of a sudden when I ran it again, I got the following error message:
I think you meant to do url[i] <- paste(...
url[i] <- paste(...
instead of url[i] = paste(.... If so replace = with <-.
url[i] = paste(...
=
<-