我正在尝试重现该线程的提案这里,通过 R 获取 pdf 文档中的页数,但我无法以 root 身份在 Debian 8.5 中安装 R poppler
> install.packages("Rpoppler")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://cran.wu.ac.at/src/contrib/Rpoppler_0.0-2.tar.gz'
Content type 'unknown' length 38208 bytes (37 KB)
==================================================
downloaded 37 KB
* installing *source* package ‘Rpoppler’ ...
** package ‘Rpoppler’ successfully unpacked and MD5 sums checked
checking for pkg-config... /usr/bin/pkg-config
checking whether pkg-config knows about poppler-glib >= 0.18.0... no
configure: error: cannot determine poppler-glib compile/link flags
ERROR: configuration failed for package ‘Rpoppler’
* removing ‘/usr/local/lib/R/site-library/Rpoppler’
The downloaded source packages are in
‘/tmp/RtmpwShV17/downloaded_packages’
Warning message:
In install.packages("Rpoppler") :
installation of package ‘Rpoppler’ had non-zero exit status
> install.packages("Rpoppler::PDF_info")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning message:
package ‘Rpoppler::PDF_info’ is not available (for R version 3.3.2)
R:3.3.2
操作系统:Debian 8.5