Learn R Programming

dvn (version 0.3.5)

dvTermsOfUse: Terms of Use

Description

Extract and view Dataverse Terms of Use.

Usage

dvTermsOfUse(xml)

Arguments

xml
A character string containing an XML data structure returned by dvMetadata or dvServiceDoc.

Value

xml, invisibly.

Details

Extracts the Terms of Use from a “dvServiceDoc” or “dvMetadata” (in DDI format) object, saves that information as temporary HTML file (or files, if dvServiceDoc returns multiple dataverses) and opens the file(s) using browseURL. Temporary files are then immediately deleted.

See Also

dvMetadata dvServiceDoc

Examples

Run this code
## Not run: 
# # Extract TOU from Data Sharing reseponse
# # (This only applies when `dvMetadata` is in DDI format)
# dvTermsOfUse(dvMetadata("hdl:1902.1/17864"))
# 
# # Extract TOU from Data Deposit reseponse:
# dvTermsOfUse(dvServiceDoc())
# ## End(Not run)

Run the code above in your browser using DataLab