-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wm_attr_data_() Error: (204) No content #14
Comments
thanks @AAlines ! having a look |
I think I have a solution using tryCatch(). It needs to be looped using sapply() and cleaned up but it works for me. It is not a perfect solution but might work int he short term.
|
nice one @hannahmunro - I have been working on something, but I had a vacation and conference, so sorry for my slow response @AAlines |
@AAlines @hannahmunro try again after reinstalling (the |
@sckott I have tried reinstalling but I am still getting the error. |
did you install exactly like |
Works!! I realize now that I didn't restart session, rookie mistake. I get similar errors when using some of the other functions. Do intend to institute a fix for those other functions too? |
can you say which fxn(s) the way I set it up, the underscore functions have the new behavior as those functions can accept many inputs, but the non-underscore version of the same function name still has the stop on error behavior as it's only meant to deal with 1 input at a time. |
I did not realize that you had implemented it for other functions. The ones that I was thinking of have been fixed! Thank you so much for your fix. |
great |
@AAlines does this work for you now? |
@sckott yes this works for me now. |
thanks |
done |
Session Info
I 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.For example, Here the
wm_attr_data_()
function works for these 3 species because they all have some attribute data:Whereas, 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:
It now returns
Error: (204) No Content
and does not return any information for the 3 original species.As 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.
Any advice would be appreciated.
Thanks
The text was updated successfully, but these errors were encountered: