Error running exifr in Rstudio

Started by christopher, January 12, 2018, 10:51:05 PM

Previous topic - Next topic

christopher

Wondering if anyone has experience with this issue when running exifr in RStudio
I've run exifr on two other computers with exiftool.exe placed in the C:/Windows directory with no issues.
However the computer (Windows 10) i'm using now i can't figure out what the issue is.
exiftool files are in the temp folder (par-53746576656e) and exiftool runs from the cmd prompt no problems.

library(exifr)
Error: package or namespace load failed for 'exifr':
.onLoad failed in loadNamespace() for 'exifr', details:
  call: configure_perl(quiet = quiet)
  error: Could not find perl at any of the following locations: perl, C:\Perl64\bin\perl, C:\Perl\bin\perl, C:\Strawberry\perl\bin\perl. Specify perl location using options(exifr.perlpath='my/path/to/perl')

Phil Harvey

Can you run exiftool from the command line?

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

Quote from: christopher on January 12, 2018, 10:51:05 PM
  error: Could not find perl at any of the following locations: perl, C:\Perl64\bin\perl, C:\Perl\bin\perl, C:\Strawberry\perl\bin\perl. Specify perl location using options(exifr.perlpath='my/path/to/perl')

The error seems to be that there is a problem in finding perl.  Those paths look like the proper places for either ActivePerl and Strawberry Perl.

What version of Perl do you have installed and what's the path to it?
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

christopher

Yes exiftool runs from the command line

Yeh i had to install strawberry Perl which i haven't had to do in the past and this fixed the problem. Thanks.
There seems to have been an update to the exifr package for R which may have led to this being a requirement