getFile {pumilioR}R Documentation

Download a sound file from Pumilio

Description

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

Usage

	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

	## 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)

[Package pumilioR version 1.3.1 Index]