## Not run: ------------------------------------
# # Set temporary working directory
# setwd(tempdir())
#
# # search without downloading
# df1 <- querxc(qword = 'Phaethornis anthophilus', download = FALSE)
# View(df1)
#
# # downloading files
# querxc(qword = 'Phaethornis anthophilus', download = TRUE)
#
# # check this folder
# getwd()
#
# ## search using xeno-canto advance query ###
# orth.pap <- querxc(qword = 'gen:orthonyx cnt:papua loc:tari', download = FALSE)
#
# # download file using the output data frame as input
# querxc(X = orth.pap)
#
# # use quotes for queries with more than 1 word (e.g. Costa Rica),note that the
# # single quotes are used for the whole 'qword' and double quotes for the 2-word term inside
# #Phaeochroa genus in Costa Rica
# phae.cr <- querxc(qword = 'gen:phaeochroa cnt:"costa rica"', download = FALSE)
#
# # several terms can be searched for in the same field
# # search for all female songs in sound type
# femsong <- querxc(qword = 'type:song type:female', download = FALSE)
## ---------------------------------------------
Run the code above in your browser using DataLab