seancarmody / ngramr

R package to query the Google Ngram Viewer
Other
48 stars 9 forks source link

Not getting an answer from google #36

Closed pooryaselkghafari closed 1 year ago

pooryaselkghafari commented 2 years ago

I get this error while running my code:

Warning: NAs introduced by coercionError in stringr::str_split(grep("drawD3Chart", json, value = TRUE), ",")[[1]] : subscript out of bounds

All my phrases have plots in n-gram. My code was working a week ago now it just sends me errors.

seancarmody commented 2 years ago

Have you updated to version 1.7.7? There was a change google made which broke the earlier versions. 1.7.7 should not give the error you saw.

seancarmody commented 2 years ago

Note that the names of the corpuses have changed so if you are specifying a corpus you will need to update your code slightly

seancarmody commented 1 year ago

I am going to assume the more recent releases have solved this issue unless I hear otherwise and will shortly close the issue

pooryaselkghafari commented 1 year ago

Hello,

Thank you for the response. Yes, the issue is resolved. Sorry for the late feedback.

seancarmody commented 1 year ago

No problem. I'm glad it's all working for you now.