# \donttest{
wd_images_ID <- system.file("pictures/sample_images_species_dir", package = "camtrapR")
if (Sys.which("exiftool") != ""){ # only run this example if ExifTool is available
check.folders <- checkSpeciesIdentification(inDir = wd_images_ID,
IDfrom = "directory",
hasCameraFolders = FALSE,
maxDeltaTime = 120,
writecsv = FALSE)
check.folders # In the example, 2 different species were photographed within 2 minutes.
}
# }
if (FALSE) {
# now exclude one of these 2 species
check.folders2 <- checkSpeciesIdentification(inDir = wd_images_ID,
IDfrom = "directory",
hasCameraFolders = FALSE,
maxDeltaTime = 120,
excludeSpecies = "EGY",
writecsv = FALSE)
check.folders2 # the data frame is empty
# now we check only one station
check.folders3 <- checkSpeciesIdentification(inDir = wd_images_ID,
IDfrom = "directory",
hasCameraFolders = FALSE,
maxDeltaTime = 120,
stationsToCheck = "StationB",
writecsv = FALSE)
check.folders3 # the data frame is empty
}
Run the code above in your browser using DataLab