Skip to content

Commit 41af04a

Browse files
committed
get rid of names, otherwise the returned vector will have names like this:
pdfcrop.pdfcrop ghostcript.gs "/usr/local/bin/pdfcrop" "/usr/local/bin/gs" this is an interesting "feature" of c()
1 parent f573088 commit 41af04a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/util.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ find_program <- function(program) {
314314

315315
has_crop_tools <- function() {
316316
tools <- c(
317-
pdfcrop = find_program("pdfcrop"),
318-
ghostcript = tools::find_gs_cmd()
317+
pdfcrop = unname(find_program("pdfcrop")),
318+
ghostcript = unname(tools::find_gs_cmd())
319319
)
320320
missing <- tools[tools == ""]
321321
if (length(missing) == 0) return(TRUE)

0 commit comments

Comments
 (0)