# First create empty folder
dir.create(file.path(getwd(),"temp"))
setwd(file.path(getwd(),"temp"))
#Then download mp3 files from xeno-canto
querxc(qword = "Phaethornis aethopygus", download = TRUE)
# Convert all files to .wav format
mp32wav()
#check this folder!!
getwd()
#remove example directory
unlink(getwd(),recursive = TRUE)
Run the code above in your browser using DataLab