Skip to content

Commit d699094

Browse files
committed
better error msg if no poppler
1 parent 4dcbfd8 commit d699094

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: RefManageR
2-
Version: 0.14.19
2+
Version: 0.14.20
33
Title: Straightforward 'BibTeX' and 'BibLaTeX' Bibliography Management
44
Authors@R: person(c("Mathew", "W."), "McLean", role = c("aut", "cre"),
55
email = "[email protected]")

R/ReadPDFs.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ ReadPDFs <- function (path, .enc = 'UTF-8', recursive = TRUE,
5151
use.crossref = TRUE, use.metadata = TRUE,
5252
progress = FALSE) {
5353
if (!nzchar(Sys.which("pdfinfo")))
54-
stop("poppler does not seem to be installed")
54+
stop(gettextf("poppler does not seem to be installed.\n%s\n%s",
55+
"ReadPDFs requires the `pdfinfo` utility from Poppler PDF be installed.",
56+
"See http://poppler.freedesktop.org/"))
5557
path <- file.path(path[1])
5658
if (!file.exists(path))
5759
stop("Specified path does not exist")

inst/NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Changes in Version 0.14.19 (2017-07-26)
1+
Changes in Version 0.14.20 (2017-07-27)
22
--------------------------------------------------------
33

44
NEW FEATURES

0 commit comments

Comments
 (0)