Temporarily adds a directory to environmental variable PATH for system calls from within R. This allows Windows users to store Exiftool in any place on their hard drive.
Usage
exiftoolPath(exiftoolDir)
Arguments
exiftoolDir
a character vector representing a directory in the file system.
Value
invisible logical indicating whether exiftoolDir was added to PATH successfully (in the running R process).
Details
Several functions within this package depend on Rxiftool. Under Windows, if the exiftool.exe is not in a directory path specified in PATH, it cannot be used. This can be solved by adding it for temporary use within the running R process. .
exiftool_dir <- "C:/PathToExiftool"exiftoolPath(exiftoolDir = exiftool_dir)
# check if it has been added to PATHgrepl(exiftool_dir, Sys.getenv("PATH"))