Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

check packageId is a resource map before trying to getDataPackage #291

Open
@jeanetteclark

Description

Recently I discovered that if getDataPackage is run on a pid with a formatId other than http://www.openarchives.org/ore/terms (in this case it was a resource map accidentally set with formatId text/csv, we get the exceedingly cryptic:

Trying urn:node:ARCTIC
Error in if (!repeated && grepl("%[[:xdigit:]]{2}", URL, useBytes = TRUE)) return(URL) :
missing value where TRUE/FALSE needed

I think it would be helpful if the function checked the sysmeta of that argument before proceeding, and gave an informative error message if it doesn't seem right.

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

        AltStyle によって変換されたページ (->オリジナル) /