Skip to content

Commit

Permalink
make other exported fxns use the new path
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Aug 25, 2024
1 parent 74cfe02 commit 78f2f7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/pdimg_help.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
#' pdimg_help()
pdimg_help <- function() {
pdfimages_exists()
z <- sys::exec_internal("pdfimages", "-help", error = FALSE)
z <- sys::exec_internal(pdimg_env$pdimages_path, "-help", error = FALSE)
cat(rawToChar(z$stderr))
}
2 changes: 1 addition & 1 deletion R/pdimg_images.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pdimg_image <- function(path, dir = NULL, ...) {
dir <- file.path(dir, gsub(".pdf$", "", basename(path)), "img")
}
dir.create(dirname(dir), recursive = TRUE, showWarnings = FALSE)
res <- sys::exec_internal("pdfimages", c(..., path, dir),
res <- sys::exec_internal(pdimg_env$pdimages_path, c(..., path, dir),
error = FALSE)
err_chk(res)
if (res$status != 0) {
Expand Down
3 changes: 2 additions & 1 deletion R/pdimg_meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ pdimg_meta_one <- function(path, ...) {
warning("path '", path, "' does not exist", call.=FALSE)
return(tibble::tibble())
}
meta <- sys::exec_internal("pdfimages", c("-all", "-list", ..., path),
meta <- sys::exec_internal(
pdimg_env$pdimages_path, c("-all", "-list", ..., path),
error = FALSE)
err_chk(meta)
txt <- rawToChar(meta$stdout)
Expand Down

0 comments on commit 78f2f7d

Please sign in to comment.