{"action":"created","issue":{"url":"https://api.github.com/repos/GioBo/TR8/issues/54","repository_url":"https://api.github.com/repos/GioBo/TR8","labels_url":"https://api.github.com/repos/GioBo/TR8/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/GioBo/TR8/issues/54/comments","events_url":"https://api.github.com/repos/GioBo/TR8/issues/54/events","html_url":"https://github.com/GioBo/TR8/issues/54","id":140611962,"number":54,"title":"NAs not assigned when certain taxon names are supplied","user":{"login":"Alectoria","id":9881274,"avatar_url":"https://avatars.githubusercontent.com/u/9881274?v=3","gravatar_id":"","url":"https://api.github.com/users/Alectoria","html_url":"https://github.com/Alectoria","followers_url":"https://api.github.com/users/Alectoria/followers","following_url":"https://api.github.com/users/Alectoria/following{/other_user}","gists_url":"https://api.github.com/users/Alectoria/gists{/gist_id}","starred_url":"https://api.github.com/users/Alectoria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alectoria/subscriptions","organizations_url":"https://api.github.com/users/Alectoria/orgs","repos_url":"https://api.github.com/users/Alectoria/repos","events_url":"https://api.github.com/users/Alectoria/events{/privacy}","received_events_url":"https://api.github.com/users/Alectoria/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-14T08:50:31Z","updated_at":"2016-03-15T22:25:34Z","closed_at":null,"body":"The tr8() function produces an error rather than assigning NA when running these lines:\r\n\r\n    tr8(species_list = \"Crepis\",  download_list = \"li_form_B\")\r\n    tr8(species_list = \"Equisetum\",  download_list = \"li_form_B\")\r\n\r\nIn both cases, I get \"Error in if (.Object@url == \"not present\") { : argument is of length zero\"\r\n\r\nI thought that single-names could be a problem but this works well:\r\n\r\n    tr8(species_list = \"Abies\",  download_list = \"li_form_B\")\r\n\r\n     li_form_B\r\n     Abies        NA\r\n\r\nWorking with v. 0.9.13."},"comment":{"url":"https://api.github.com/repos/GioBo/TR8/issues/comments/197052223","html_url":"https://github.com/GioBo/TR8/issues/54#issuecomment-197052223","issue_url":"https://api.github.com/repos/GioBo/TR8/issues/54","id":197052223,"user":{"login":"GioBo","id":8990172,"avatar_url":"https://avatars.githubusercontent.com/u/8990172?v=3","gravatar_id":"","url":"https://api.github.com/users/GioBo","html_url":"https://github.com/GioBo","followers_url":"https://api.github.com/users/GioBo/followers","following_url":"https://api.github.com/users/GioBo/following{/other_user}","gists_url":"https://api.github.com/users/GioBo/gists{/gist_id}","starred_url":"https://api.github.com/users/GioBo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GioBo/subscriptions","organizations_url":"https://api.github.com/users/GioBo/orgs","repos_url":"https://api.github.com/users/GioBo/repos","events_url":"https://api.github.com/users/GioBo/events{/privacy}","received_events_url":"https://api.github.com/users/GioBo/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T22:25:34Z","updated_at":"2016-03-15T22:25:34Z","body":"Thanks for reporting this.\r\nTR8 works only with complete \"Genus+species\" names; the reason for the mentioned inconsistent behavior is due not to Biolflor or TR8, but to the fact that Bioflor names are checked using the taxize package: for Crepis genus there are multiple Biolflor names which are matched only at the Genus level, thus the tr8() function attempts (without success) to get data from multiple entries and then the mentioned Error is raised. For Abies there is only one species in Biolflor (A. alba), thus tr8() tries to get data from there, but in that case NA's are reported.\r\nI'll add a \"Warning\" so that users will be advised to use only names at the species level.\r\nG."}}