{"action":"created","issue":{"url":"https://api.github.com/repos/ropensci/hunspell/issues/27","repository_url":"https://api.github.com/repos/ropensci/hunspell","labels_url":"https://api.github.com/repos/ropensci/hunspell/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/hunspell/issues/27/comments","events_url":"https://api.github.com/repos/ropensci/hunspell/issues/27/events","html_url":"https://github.com/ropensci/hunspell/issues/27","id":259925287,"number":27,"title":"hunspell_... returns \"NA\" as a string, not as a missing value","user":{"login":"nthun","id":7265515,"avatar_url":"https://avatars1.githubusercontent.com/u/7265515?v=4","gravatar_id":"","url":"https://api.github.com/users/nthun","html_url":"https://github.com/nthun","followers_url":"https://api.github.com/users/nthun/followers","following_url":"https://api.github.com/users/nthun/following{/other_user}","gists_url":"https://api.github.com/users/nthun/gists{/gist_id}","starred_url":"https://api.github.com/users/nthun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nthun/subscriptions","organizations_url":"https://api.github.com/users/nthun/orgs","repos_url":"https://api.github.com/users/nthun/repos","events_url":"https://api.github.com/users/nthun/events{/privacy}","received_events_url":"https://api.github.com/users/nthun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-22T20:17:55Z","updated_at":"2017-09-22T20:48:58Z","closed_at":"2017-09-22T20:48:37Z","author_association":"NONE","body":"Hi, I think this is a bug. When you pass NA values - with a class of string - to any of the hunspell functions, it converts \"NA\" to a string, and returns it, instead of returning a missing value.\r\n\r\n```\r\ny <- NA_character_\r\n\r\n> hunspell_parse(y)\r\n[[1]]\r\n[1] \"NA\"\r\n\r\n> hunspell_analyze(y)\r\n[[1]]\r\n[1] \" st:Na\"\r\n\r\n> hunspell_stem(y)\r\n[[1]]\r\n[1] \"Na\"\r\n```"},"comment":{"url":"https://api.github.com/repos/ropensci/hunspell/issues/comments/331556981","html_url":"https://github.com/ropensci/hunspell/issues/27#issuecomment-331556981","issue_url":"https://api.github.com/repos/ropensci/hunspell/issues/27","id":331556981,"user":{"login":"jeroen","id":216319,"avatar_url":"https://avatars3.githubusercontent.com/u/216319?v=4","gravatar_id":"","url":"https://api.github.com/users/jeroen","html_url":"https://github.com/jeroen","followers_url":"https://api.github.com/users/jeroen/followers","following_url":"https://api.github.com/users/jeroen/following{/other_user}","gists_url":"https://api.github.com/users/jeroen/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroen/subscriptions","organizations_url":"https://api.github.com/users/jeroen/orgs","repos_url":"https://api.github.com/users/jeroen/repos","events_url":"https://api.github.com/users/jeroen/events{/privacy}","received_events_url":"https://api.github.com/users/jeroen/received_events","type":"User","site_admin":false},"created_at":"2017-09-22T20:48:58Z","updated_at":"2017-09-22T20:48:58Z","author_association":"COLLABORATOR","body":"Thanks! Fixed."}}
{"actor":{"display_login":"jeroen"}}