{"action":"created","issue":{"url":"https://api.github.com/repos/ropensci/worrms/issues/14","repository_url":"https://api.github.com/repos/ropensci/worrms","labels_url":"https://api.github.com/repos/ropensci/worrms/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/worrms/issues/14/comments","events_url":"https://api.github.com/repos/ropensci/worrms/issues/14/events","html_url":"https://github.com/ropensci/worrms/issues/14","id":353372234,"node_id":"MDU6SXNzdWUzNTMzNzIyMzQ=","number":14,"title":"wm_attr_data_() Error: (204) No content","user":{"login":"AAlines","id":42641592,"node_id":"MDQ6VXNlcjQyNjQxNTky","avatar_url":"https://avatars0.githubusercontent.com/u/42641592?v=4","gravatar_id":"","url":"https://api.github.com/users/AAlines","html_url":"https://github.com/AAlines","followers_url":"https://api.github.com/users/AAlines/followers","following_url":"https://api.github.com/users/AAlines/following{/other_user}","gists_url":"https://api.github.com/users/AAlines/gists{/gist_id}","starred_url":"https://api.github.com/users/AAlines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AAlines/subscriptions","organizations_url":"https://api.github.com/users/AAlines/orgs","repos_url":"https://api.github.com/users/AAlines/repos","events_url":"https://api.github.com/users/AAlines/events{/privacy}","received_events_url":"https://api.github.com/users/AAlines/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ropensci/worrms/milestones/3","html_url":"https://github.com/ropensci/worrms/milestone/3","labels_url":"https://api.github.com/repos/ropensci/worrms/milestones/3/labels","id":2920133,"node_id":"MDk6TWlsZXN0b25lMjkyMDEzMw==","number":3,"title":"v0.3","description":"","creator":{"login":"sckott","id":577668,"node_id":"MDQ6VXNlcjU3NzY2OA==","avatar_url":"https://avatars1.githubusercontent.com/u/577668?v=4","gravatar_id":"","url":"https://api.github.com/users/sckott","html_url":"https://github.com/sckott","followers_url":"https://api.github.com/users/sckott/followers","following_url":"https://api.github.com/users/sckott/following{/other_user}","gists_url":"https://api.github.com/users/sckott/gists{/gist_id}","starred_url":"https://api.github.com/users/sckott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sckott/subscriptions","organizations_url":"https://api.github.com/users/sckott/orgs","repos_url":"https://api.github.com/users/sckott/repos","events_url":"https://api.github.com/users/sckott/events{/privacy}","received_events_url":"https://api.github.com/users/sckott/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2017-11-17T16:20:14Z","updated_at":"2018-10-25T15:46:23Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2018-08-23T13:07:11Z","updated_at":"2018-10-25T16:41:02Z","closed_at":null,"author_association":"NONE","body":"<details> <summary><strong>Session Info</strong></summary>\r\n\r\n```r\r\nSession info ---------------------------------------------------------------------------------------------------------------------------------------------------------------\r\n setting  value                       \r\n version  R version 3.4.2 (2017-09-28)\r\n system   i386, mingw32               \r\n ui       RStudio (1.1.383)           \r\n language (EN)                        \r\n collate  English_United Kingdom.1252 \r\n tz       Europe/London               \r\n date     2018-08-23                  \r\n\r\nPackages -------------------------------------------------------------------------------------------------------------------------------------------------------------------\r\n package    * version  date       source        \r\n assertthat   0.2.0    2017-04-11 CRAN (R 3.4.2)\r\n backports    1.1.1    2017-09-25 CRAN (R 3.4.1)\r\n base       * 3.4.2    2017-09-28 local         \r\n base64enc    0.1-3    2015-07-28 CRAN (R 3.4.1)\r\n bindr        0.1      2016-11-13 CRAN (R 3.4.2)\r\n bindrcpp   * 0.2      2017-06-17 CRAN (R 3.4.2)\r\n broom        0.4.3    2017-11-20 CRAN (R 3.4.3)\r\n cellranger   1.1.0    2016-07-27 CRAN (R 3.4.2)\r\n cli          1.0.0    2017-11-05 CRAN (R 3.4.2)\r\n colorspace   1.3-2    2016-12-14 CRAN (R 3.4.2)\r\n compiler     3.4.2    2017-09-28 local         \r\n crayon       1.3.4    2017-09-16 CRAN (R 3.4.2)\r\n crul         0.6.0    2018-07-10 CRAN (R 3.4.4)\r\n curl         3.2      2018-03-28 CRAN (R 3.4.4)\r\n data.table   1.10.4-3 2017-10-27 CRAN (R 3.4.4)\r\n datasets   * 3.4.2    2017-09-28 local         \r\n devtools     1.13.6   2018-06-27 CRAN (R 3.4.4)\r\n digest       0.6.12   2017-01-27 CRAN (R 3.4.2)\r\n dplyr      * 0.7.4    2017-09-28 CRAN (R 3.4.2)\r\n evaluate     0.10.1   2017-06-24 CRAN (R 3.4.2)\r\n forcats    * 0.2.0    2017-01-23 CRAN (R 3.4.2)\r\n foreign      0.8-69   2017-06-22 CRAN (R 3.4.2)\r\n ggplot2    * 3.0.0    2018-07-03 CRAN (R 3.4.4)\r\n glue         1.2.0    2017-10-29 CRAN (R 3.4.2)\r\n graphics   * 3.4.2    2017-09-28 local         \r\n grDevices  * 3.4.2    2017-09-28 local         \r\n grid         3.4.2    2017-09-28 local         \r\n gtable       0.2.0    2016-02-26 CRAN (R 3.4.2)\r\n haven        1.1.0    2017-07-09 CRAN (R 3.4.2)\r\n hms          0.4.0    2017-11-23 CRAN (R 3.4.2)\r\n htmltools    0.3.6    2017-04-28 CRAN (R 3.4.2)\r\n httpcode     0.2.0    2016-11-14 CRAN (R 3.4.1)\r\n httr         1.3.1    2017-08-20 CRAN (R 3.4.2)\r\n jsonlite     1.5      2017-06-01 CRAN (R 3.4.2)\r\n knitr        1.17     2017-08-10 CRAN (R 3.4.2)\r\n lattice      0.20-35  2017-03-25 CRAN (R 3.4.2)\r\n lazyeval     0.2.1    2017-10-29 CRAN (R 3.4.2)\r\n lubridate    1.7.4    2018-04-11 CRAN (R 3.4.4)\r\n magrittr     1.5      2014-11-22 CRAN (R 3.4.2)\r\n memoise      1.1.0    2017-04-21 CRAN (R 3.4.4)\r\n methods    * 3.4.2    2017-09-28 local         \r\n mnormt       1.5-5    2016-10-15 CRAN (R 3.4.1)\r\n modelr       0.1.1    2017-07-24 CRAN (R 3.4.2)\r\n munsell      0.4.3    2016-02-13 CRAN (R 3.4.2)\r\n nlme         3.1-131  2017-02-06 CRAN (R 3.4.2)\r\n parallel     3.4.2    2017-09-28 local         \r\n pkgconfig    2.0.1    2017-03-21 CRAN (R 3.4.2)\r\n plyr         1.8.4    2016-06-08 CRAN (R 3.4.2)\r\n psych        1.7.8    2017-09-09 CRAN (R 3.4.2)\r\n purrr      * 0.2.4    2017-10-18 CRAN (R 3.4.2)\r\n R6           2.2.2    2017-06-17 CRAN (R 3.4.2)\r\n Rcpp         0.12.14  2017-11-23 CRAN (R 3.4.2)\r\n readr      * 1.1.1    2017-05-16 CRAN (R 3.4.2)\r\n readxl       1.0.0    2017-04-18 CRAN (R 3.4.2)\r\n reshape2     1.4.2    2016-10-22 CRAN (R 3.4.2)\r\n rlang        0.2.0    2018-02-20 CRAN (R 3.4.3)\r\n rmarkdown    1.8      2017-11-17 CRAN (R 3.4.2)\r\n rprojroot    1.2      2017-01-16 CRAN (R 3.4.2)\r\n rstudioapi   0.7      2017-09-07 CRAN (R 3.4.2)\r\n rvest        0.3.2    2016-06-17 CRAN (R 3.4.2)\r\n scales       0.5.0    2017-08-24 CRAN (R 3.4.2)\r\n stats      * 3.4.2    2017-09-28 local         \r\n stringi      1.1.6    2017-11-17 CRAN (R 3.4.2)\r\n stringr    * 1.2.0    2017-02-18 CRAN (R 3.4.2)\r\n tibble     * 1.3.4    2017-08-22 CRAN (R 3.4.2)\r\n tidyr      * 0.7.2    2017-10-16 CRAN (R 3.4.2)\r\n tidyverse  * 1.2.1    2017-11-14 CRAN (R 3.4.4)\r\n tools        3.4.2    2017-09-28 local         \r\n triebeard    0.3.0    2016-08-04 CRAN (R 3.4.4)\r\n urltools     1.7.1    2018-08-03 CRAN (R 3.4.4)\r\n utils      * 3.4.2    2017-09-28 local         \r\n withr        2.1.2    2018-03-15 CRAN (R 3.4.4)\r\n worrms     * 0.2.8    2018-05-21 CRAN (R 3.4.4)\r\n xml2         1.1.1    2017-01-24 CRAN (R 3.4.2)\r\n yaml         2.2.0    2018-07-25 CRAN (R 3.4.4)\r\n```\r\n\r\n</details>\r\n\r\n\r\nI am trying to get species attribute information using the `wm_attr_data_()` function for multiple species. However, I am encountering problems when the list of AphiaID's I provide involves an AphiaID of a species with no attribute data at all on the WoRMs page for the particular species.\r\nFor example, Here the `wm_attr_data_()` function works for these 3 species because they all have some attribute data:\r\n```r\r\nlibrary(tidyverse)\r\nlibrary(worrms)\r\nAphiaID <- c(584932, 107381, 126436)\r\nwm_attr_data_(AphiaID, include_inherited = TRUE)\r\n```\r\nWhereas, when the AphiaID 100373 is added (A species with no attribute data on the WoRMs webpage: http://www.marinespecies.org/aphia.php?p=taxdetails&id=100373) and the following code is used:\r\n```r\r\nAphiaID2 <- c(584932, 107381, 126436, 100373)\r\nwm_attr_data_(AphiaID2, include_inherited = TRUE)\r\n```\r\nIt now returns `Error: (204) No Content` and does not return any information for the 3 original species.\r\n\r\nAs I am planning to run this across a much larger set of species. It would perhaps be more useful if it returned the same output as the original example but with a row for the species without attribute information, with NA in each of the attribute fields, so as to avoid the function stopping. \r\n\r\nAny advice would be appreciated.\r\nThanks\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ropensci/worrms/issues/comments/433122449","html_url":"https://github.com/ropensci/worrms/issues/14#issuecomment-433122449","issue_url":"https://api.github.com/repos/ropensci/worrms/issues/14","id":433122449,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzEyMjQ0OQ==","user":{"login":"sckott","id":577668,"node_id":"MDQ6VXNlcjU3NzY2OA==","avatar_url":"https://avatars1.githubusercontent.com/u/577668?v=4","gravatar_id":"","url":"https://api.github.com/users/sckott","html_url":"https://github.com/sckott","followers_url":"https://api.github.com/users/sckott/followers","following_url":"https://api.github.com/users/sckott/following{/other_user}","gists_url":"https://api.github.com/users/sckott/gists{/gist_id}","starred_url":"https://api.github.com/users/sckott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sckott/subscriptions","organizations_url":"https://api.github.com/users/sckott/orgs","repos_url":"https://api.github.com/users/sckott/repos","events_url":"https://api.github.com/users/sckott/events{/privacy}","received_events_url":"https://api.github.com/users/sckott/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T16:41:02Z","updated_at":"2018-10-25T16:41:02Z","author_association":"MEMBER","body":"did you install exactly like `remotes::install_github(\"ropensci/worrms@error-vehavior\")` and restart your R session?"}}
{"actor":{"display_login":"sckott"}}