{"action":"created","issue":{"url":"https://api.github.com/repos/petermeissner/wikipediatrend/issues/14","labels_url":"https://api.github.com/repos/petermeissner/wikipediatrend/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/petermeissner/wikipediatrend/issues/14/comments","events_url":"https://api.github.com/repos/petermeissner/wikipediatrend/issues/14/events","html_url":"https://github.com/petermeissner/wikipediatrend/issues/14","id":72948828,"number":14,"title":"grepl error when querying Russian wikipedia","user":{"login":"erzk","id":5550348,"avatar_url":"https://avatars.githubusercontent.com/u/5550348?v=3","gravatar_id":"","url":"https://api.github.com/users/erzk","html_url":"https://github.com/erzk","followers_url":"https://api.github.com/users/erzk/followers","following_url":"https://api.github.com/users/erzk/following{/other_user}","gists_url":"https://api.github.com/users/erzk/gists{/gist_id}","starred_url":"https://api.github.com/users/erzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erzk/subscriptions","organizations_url":"https://api.github.com/users/erzk/orgs","repos_url":"https://api.github.com/users/erzk/repos","events_url":"https://api.github.com/users/erzk/events{/privacy}","received_events_url":"https://api.github.com/users/erzk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-04T07:49:03Z","updated_at":"2015-05-04T08:14:53Z","closed_at":null,"body":"I found another bug when querying Russian wikipedia.\r\n\r\nI used the following code:\r\n```\r\nbkomoRU <- wp_trend(  page      = \"Президент Польши\", \r\n                      from      = \"2015-01-01\", \r\n                      lang      = \"ru\")\r\n``` \r\nand I got the following error:\r\n```\r\nError: grepl(\"\\\\w\", page) is not TRUE\r\n```\r\n\r\nI'm not sure what's the reason for that.\r\n"},"comment":{"url":"https://api.github.com/repos/petermeissner/wikipediatrend/issues/comments/98625575","html_url":"https://github.com/petermeissner/wikipediatrend/issues/14#issuecomment-98625575","issue_url":"https://api.github.com/repos/petermeissner/wikipediatrend/issues/14","id":98625575,"user":{"login":"petermeissner","id":939139,"avatar_url":"https://avatars.githubusercontent.com/u/939139?v=3","gravatar_id":"","url":"https://api.github.com/users/petermeissner","html_url":"https://github.com/petermeissner","followers_url":"https://api.github.com/users/petermeissner/followers","following_url":"https://api.github.com/users/petermeissner/following{/other_user}","gists_url":"https://api.github.com/users/petermeissner/gists{/gist_id}","starred_url":"https://api.github.com/users/petermeissner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermeissner/subscriptions","organizations_url":"https://api.github.com/users/petermeissner/orgs","repos_url":"https://api.github.com/users/petermeissner/repos","events_url":"https://api.github.com/users/petermeissner/events{/privacy}","received_events_url":"https://api.github.com/users/petermeissner/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T08:14:53Z","updated_at":"2015-05-04T08:14:53Z","body":"Thanks for reporting!\r\n\r\nI'll switch internals to ...\r\n    grepl(\"\\\\w\", \"Президент Польши\", useBytes = T)\r\n    stringr::str_detect(\"Президент Польши\", \"\\\\w\")\r\n\r\nAt the moment *wikipediatrend* is not well (i.e. not at all) equipped to handle special characters. But I work on it and it shall be solved in the next version patch. "}}