Skip to content

Error handling for get_orcid_name #157

@dmullen17

Description

@dmullen17

get_orcid_name is a helper function called by list_submissions that attends to scrape an orcid url and return the submitter's name. It looks like this is failing in some cases and it could use some error handling so that it doesn't cause the function call to fail.

Here are examples of the two cases:

cn <- dataone::CNode('PROD')
adc <- dataone::getMNode(cn,'urn:node:ARCTIC')

list_submissions(adc, '2019-09-01', '2020-01-15') # this fails
list_submissions(adc, '2020-01-01', '2020-01-15') # this succeeds 

An easy way to do this would be to just include some text to default to if it fails like "Orcid not found".

@rachelsun97 if you want to take this one!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions