Thanks. Adding a library(exifr) seems to have installed exiftool, but for some reason I can't seem to call it via Python/reticulate. For example, if I have this in my script:
library(reticulate)
library(exifr)
subprocess <- import('subprocess')
exiftool_path <- getOption('exifr.exiftoolcommand')
subprocess$check_output(paste(exiftool_path, 'FLIR_350.jpeg'))
Then I get the following message:
Using ExifTool version 10.61
Error in value[[3L]](cond) : OSError: [Errno 2] No such file or directory
Detailed traceback:
File "/usr/lib/python2.7/subprocess.py", line 567, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
No such errors when running locally.
Is there a way to access the terminal in a shinyapps.io instance?
EDIT: I decided to instead just dump exiftool files in the app folder, and after a chmod it works. I'm guessing that if I do a chmod on whatever getOption('exifr.exiftoolcommand') returns, I can use that instead of dumping exiftool files into the app directory.
Thanks for your help.