bef.portal.get.datasets.for_proposal: Fetch primary data in CSV format from a BEFdata portal...

Description Usage Arguments Details Value Examples

Description

This function fetches data associated to a paperproposal on a BEFdata portal. By default it will fetch all associated files in CSV format next to the informations available like the title, the download URL and the id of the datasets.

Usage

1
2
  bef.portal.get.datasets.for_proposal(id,
    curl = getCurlHandle(), ...)

Arguments

id

This is the ID of a paper proposal. You can download all datasets in one turn given the ID.

curl

If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint)

...

This are other arguments passed to getURLContent

Details

You need to provide the function with a proposal id which you can find in the URL of the proposal and your user credentials. You can find the credentials inside of your profile page on the BEFdata portal. The credentials ensure you have the rights to download the data.

The function returns a list object which you can store to a variable as shown in the examples below.

Value

The function returns a list of raw data attached to a proposal. An error is thrown when the proposal is not found or you don't have the access rights for it.

Examples

1
2
3
4
## Not run: 
	  prop1 = bef.portal.get.datasets.for_proposal(proposal = 8)
 	
## End(Not run)

rbefdata documentation built on May 2, 2019, 8:39 a.m.