{"action":"created","issue":{"url":"https://api.github.com/repos/PMassicotte/gtrendsR/issues/132","repository_url":"https://api.github.com/repos/PMassicotte/gtrendsR","labels_url":"https://api.github.com/repos/PMassicotte/gtrendsR/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/PMassicotte/gtrendsR/issues/132/comments","events_url":"https://api.github.com/repos/PMassicotte/gtrendsR/issues/132/events","html_url":"https://github.com/PMassicotte/gtrendsR/issues/132","id":183282476,"number":132,"title":"Error: 'ch' arguments has to be result from 'gconnect()'.","user":{"login":"nomadofthehills","id":10266232,"avatar_url":"https://avatars.githubusercontent.com/u/10266232?v=3","gravatar_id":"","url":"https://api.github.com/users/nomadofthehills","html_url":"https://github.com/nomadofthehills","followers_url":"https://api.github.com/users/nomadofthehills/followers","following_url":"https://api.github.com/users/nomadofthehills/following{/other_user}","gists_url":"https://api.github.com/users/nomadofthehills/gists{/gist_id}","starred_url":"https://api.github.com/users/nomadofthehills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomadofthehills/subscriptions","organizations_url":"https://api.github.com/users/nomadofthehills/orgs","repos_url":"https://api.github.com/users/nomadofthehills/repos","events_url":"https://api.github.com/users/nomadofthehills/events{/privacy}","received_events_url":"https://api.github.com/users/nomadofthehills/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-16T18:32:01Z","updated_at":"2016-10-19T01:17:16Z","closed_at":null,"body":"Hello,\r\n\r\nWhen I try to do the example provided in the readme, I get the error in the title:\r\nError: 'ch' arguments has to be result from 'gconnect()'.\r\n\r\nBelow is my code. I can connect successfully, but then I can't progress. \r\n\r\n> usr <- \"xxxxx@gmail.com\"  # alternatively store as options() or env.var\r\n> psw <- \"xxxxx\"        # idem\r\n\r\n> gconnect(usr, psw,verbose=TRUE)       # stores handle in environment\r\nGoogle login successful!\r\nAn object of class \"CURLHandle\"\r\nSlot \"ref\": <pointer: 0x0000000002fe16e0>\r\n\r\n> sport_trend <- gtrends(c(\"nhl\", \"nba\", \"nfl\"))\r\nError: 'ch' arguments has to be result from 'gconnect()'.\r\n> plot(sport_trend)\r\nError in plot(sport_trend) : object 'sport_trend' not found\r\n\r\nThanks!\r\n\r\nPS, I'm using RStudio Version 0.99.491 and R version 3.1.2 (2014-10-31) -- \"Pumpkin Helmet\" on Windows 10.\r\n"},"comment":{"url":"https://api.github.com/repos/PMassicotte/gtrendsR/issues/comments/254684213","html_url":"https://github.com/PMassicotte/gtrendsR/issues/132#issuecomment-254684213","issue_url":"https://api.github.com/repos/PMassicotte/gtrendsR/issues/132","id":254684213,"user":{"login":"nomadofthehills","id":10266232,"avatar_url":"https://avatars.githubusercontent.com/u/10266232?v=3","gravatar_id":"","url":"https://api.github.com/users/nomadofthehills","html_url":"https://github.com/nomadofthehills","followers_url":"https://api.github.com/users/nomadofthehills/followers","following_url":"https://api.github.com/users/nomadofthehills/following{/other_user}","gists_url":"https://api.github.com/users/nomadofthehills/gists{/gist_id}","starred_url":"https://api.github.com/users/nomadofthehills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomadofthehills/subscriptions","organizations_url":"https://api.github.com/users/nomadofthehills/orgs","repos_url":"https://api.github.com/users/nomadofthehills/repos","events_url":"https://api.github.com/users/nomadofthehills/events{/privacy}","received_events_url":"https://api.github.com/users/nomadofthehills/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T01:17:16Z","updated_at":"2016-10-19T01:17:16Z","body":"Thank you.\r\n\r\nWhy do I need to include the ch when none of the examples I can find elsewhere include that?\r\n"}}
{"actor":{"display_login":"nomadofthehills"}}