getFile: Download a sound file from Pumilio

Description Usage Arguments Value Examples

View source: R/getFile.R

Description

Function to download one sound file, specified with SoundID, to the working directory from the result of a query using getSounds.

Usage

1
2
	getFile(result, SoundID = NA, credentials = NA)
	

Arguments

result

the result of the function getSounds

SoundID

ID of a valid record, obtained using getSounds

credentials

username and password, separated with a colon, for websites that require basic Apache webserver authentication

Value

Returns the filename.

Examples

1
2
3
4
5
6
7
8
9
	## Not run: 
	#First, get a list of results
	results <- getSounds(pumilio_URL = "http://pumilio.coquipr.com/pumilio/", 
		SiteID = 111, type = "site")
	
	#Then, get the file from the first row, identified with the SoundID = 4078
	getFile(results, SoundID = 4078)
	
## End(Not run)

pumilioR documentation built on May 2, 2019, 3:36 p.m.

Related to getFile in pumilioR...