相关疑难解决方法(0)

为什么knitr无法找到framed.sty或kpsewhich?

knit('test2.rnw')


processing file: test2.rnw
  |>>>>>>>>>>>>>                                                    |  20%
  |>>>>>>>>>>>>>>>>>>>>>>>>>>                                       |  40%
label: setup (with options) 
List of 2
 $ include: logi FALSE
 $ cache  : logi FALSE

sh: kpsewhich: command not found
  |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>                          |  60%
  |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>             |  80%
  |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>| 100%
  ordinary text without R code


output file: /Users/xxx/Desktop/R_meetup/documentation/test2.tex

Warning message:
In test_latex_pkg("framed", system.file("misc", "framed.sty", package = "knitr")) :
  unable to find LaTeX package 'framed'; will use a copy from knitr
 >
Run Code Online (Sandbox Code Playgroud)

我在OSX Lion 10.7.3上

kpsewhich的路径:

   $ which kpsewhich
    /usr/texbin/kpsewhich


$ which …
Run Code Online (Sandbox Code Playgroud)

latex r knitr

8
推荐指数
1
解决办法
5387
查看次数

Rmarkdown2中的PDF渲染/

我刚刚在14.04 Ubuntu上安装了最新的Rstudio(0.98.939)Rmarkdown过夜版本(请点几招Rstudio人员 - 你已经改变了用户体验!).(下面的SessionInfo).简单的脚本(只是一个表格和汽车数据集的图表)在HTML和Word中完美呈现,但在PDF格式中,我得到以下神秘错误......"未找到framed.sty'"

我欢迎建议或者这是一个需要报告的错误?:

这是rmarkdown日志:

processing file: Preview-25bc4ab5a01f.Rmd
  |.............                                                    |  20%
  ordinary text without R code

  |..........................                                       |  40%
label: unnamed-chunk-1
  |.......................................                          |  60%
  ordinary text without R code

  |....................................................             |  80%
label: unnamed-chunk-2 (with options) 
List of 1
 $ echo: logi FALSE

cropping ./Preview-25bc4ab5a01f_files/figure-latex/unnamed-chunk-2.pdf
PDFCROP 1.38, 2012/11/02 - Copyright (c) 2002-2012 by Heiko Oberdiek.
==> 1 page written on `./Preview-25bc4ab5a01f_files/figure-latex/unnamed-chunk-2.pdf'.
  |.................................................................| 100%
  ordinary text without R code


/usr/lib/rstudio/bin/pandoc/pandoc Preview-25bc4ab5a01f.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output Preview-25bc4ab5a01f.pdf --template /home/rob/R/x86_64-pc-linux-gnu-library/3.1/rmarkdown/rmd/latex/default.tex --highlight-style …
Run Code Online (Sandbox Code Playgroud)

r rstudio r-markdown

8
推荐指数
1
解决办法
5438
查看次数

标签 统计

r ×2

knitr ×1

latex ×1

r-markdown ×1

rstudio ×1