Use {backports} version of R_user_dir("exiftoolr") instead of system.file("exiftool", package = "exiftoolr") as default for install_exiftool().
The directory and the "R" directory above aren't automatically created by R so we need to use a dir.create(recursive = TRUE) to create them if necessary.
We always use the {backports} version even for later versions of R when it exists in {tools}. See https://github.com/r-lib/backports for more complicated arrangements.
Technically this requires users have R >= 3.0.0 (instead of R >= 4.0.0). Not sure who is still lesser versions of R...
Confirm that this causes install_exiftool() to now work on my computer (whose R libraries are root and not user-writable).
{backports}
version ofR_user_dir("exiftoolr")
instead ofsystem.file("exiftool", package = "exiftoolr")
as default forinstall_exiftool()
.dir.create(recursive = TRUE)
to create them if necessary.{backports}
version even for later versions of R when it exists in{tools}
. See https://github.com/r-lib/backports for more complicated arrangements.install_exiftool()
to now work on my computer (whose R libraries are root and not user-writable).closes #10