Error in : object of type 'closure' is not subsettable

前端 未结 5 2073
生来不讨喜
生来不讨喜 2020-11-22 04:39

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:

<
5条回答
  •  既然无缘
    2020-11-22 04:58

    You don't define the vector, url, before trying to subset it. url is also a function in the base package, so url[i] is attempting to subset that function... which doesn't make sense.

    You probably defined url in your prior R session, but forgot to copy that code to your script.

提交回复
热议问题