R/globals.R

Defines functions get_perl_path set_perl_path get_exiftool_command set_exiftool_command is_exiftoolr_configured

.globals <- new.env(parent = emptyenv())
.globals$exiftoolr_configured <- FALSE
.globals$exiftool_command <- NULL
.globals$perl_path <- NULL


is_exiftoolr_configured <- function() {
    .globals$exiftoolr_configured
}


set_exiftool_command <- function(com) {
    .globals$exiftool_command <- com
    .globals$exiftoolr_configured <- TRUE
}

get_exiftool_command <- function() {
    .globals$exiftool_command
}


set_perl_path <- function(path) {
    .globals$perl_path <- path
}

get_perl_path <- function() {
    .globals$perl_path
}

Try the exiftoolr package in your browser

Any scripts or data that you put into this service are public.

exiftoolr documentation built on Oct. 18, 2023, 1:06 a.m.