GtrendsR Error: widget $ status_code == 200 not TRUE

I am working with the most recent devtools :: install_github ('PMassicotte / gtrendsR')

Everything was fine until last night. Then I got this error message:

Error: widget$status_code == 200 is not TRUE

      

code:

trend1 = gtrends("google", geo = c(""), time = "2014-07-28 2015-11-23")

      

result:

> trend1 = gtrends("google", geo = c(""), time = "2014-07-28 2015-11-23")
Error: widget$status_code == 200 is not TRUE

      

Does anyone know what happened to how to fix it?

+3


source to share


1 answer


I faced the same problem and finally found a solution as well as your question. just in case, he can help. you have to install devtools version:

devtools::install_github("PMassicotte/gtrendsR")

      



if you don't have a package installed curl

, you have to do it manually before installinggtrendsR

+2


source







All Articles