dvDeleteFile: Delete a study file

Description Usage Arguments Details Value Author(s) See Also

View source: R/dvDeleteFile.r

Description

Use Data Deposit API to delete a study file.

Usage

1
2
3
dvDeleteFile(   fileid, dv=getOption('dvn'), 
                user=getOption('dvn.user'), pwd=getOption('dvn.pwd'), 
                browser=FALSE, ...)

Arguments

fileid

A character string specifying a dataverse fileId for a file contained in a dataverse record. This is distinct from the objectid that identifies the entire study in which the file is located. This could be returned from dvCreateStudy, dvStudyStatement, (or, dvExtractFileIds, from the Data Sharing API).

dv

An optional character string specifying the Dataverse to query. Default is the Harvard IQSS Dataverse.

user

A character string containing a dataverse username. Default is options('dvn.user').

pwd

A character string containing the corresponding dataverse password. Default is options('dvn.pwd').

browser

A logical specifying whether the query should be executed in a web browser. Default is FALSE.

...

Optionally, additional arguments passed to curlPerform via dvDepositQuery.

Details

This deletes a file in a study.

Value

If successful, the response is an empty character string.

Author(s)

Thomas J. Leeper

See Also

dvAddFile dvCreateStudy dvEditStudy dvReleaseStudy


dvn documentation built on May 29, 2017, 5:53 p.m.