if (FALSE) {
# search without downloading
df1 <- query_xc(qword = 'Phaethornis anthophilus', download = FALSE)
View(df1)
# downloading files
query_xc(qword = 'Phaethornis anthophilus', download = TRUE, path = tempdir())
# check this folder
tempdir()
## search using xeno-canto advance query ###
orth.pap <- query_xc(qword = 'gen:orthonyx cnt:papua loc:tari', download = FALSE)
# download file using the output data frame as input
query_xc(X = orth.pap, path = tempdir())
# 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 <- query_xc(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 <- query_xc(qword = 'type:song type:female', download = FALSE)
}
Run the code above in your browser using DataLab