Thanks, Juergen, installed the
current GitHub version and it resolved the issue.
I have one more small issue; when I try to copy species images to folders, it works fine for single species, but when I try to copy multiple species images together, I am getting an error.
wd_images_species_copy<-file.path("F:/Camera trap/Camera Trap Data/2023PreMon working folder/2023PreMonSpecies")
> species_to_copy <- c("Barking Deer")
> recordtable<-read.csv("F:/Camera trap/Camera Trap Data/2023PreMon working folder/2023PreMonrRenamed/record_table_0min_deltaT_2023-05-19.csv")
> specImagecopy <- getSpeciesImages(species = species_to_copy, recordTable=rec.db.species0, speciesCol="metadata_Mammal", stationCol="Station", outDir = wd_images_species_copy, createStationSubfolders = FALSE )
BARKING DEER - copied 316 out of 316 images to F:/Camera trap/Camera Trap Data/2023PreMon working folder/2023PreMonSpecies/Barking Deer
But on trying multiple species its giving me an error
wd_images_species_copy<-file.path("F:/Camera trap/Camera Trap Data/2023PreMon working folder/2023PreMonSpecies")
> species_to_copy <- c("Barking Deer","Bonnet Macaque","Brown Mongoose","Brown Palm Civet","Common Langur","Elephant","Gaur","Leopard Cat","Mouse Deer","Nilgiri Marten","Other","Sambar","Small Indian Civet","Wild Pig")
> recordtable<-read.csv("F:/Camera trap/Camera Trap Data/2023PreMon working folder/2023PreMonrRenamed/record_table_0min_deltaT_2023-05-19.csv")
> specImagecopy <- getSpeciesImages(species = species_to_copy, recordTable=rec.db.species0, speciesCol="metadata_Mammal", stationCol="Station", outDir = wd_images_species_copy, createStationSubfolders = FALSE )
Error in if (species %in% recordTable[, speciesCol] == FALSE) stop("species was not found in speciesCol of recordTable", :
the condition has length > 1