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
>
私はOSX Lion 10.7.3を使用しています
kpsewhich のパス:
$ which kpsewhich
/usr/texbin/kpsewhich
$ which pdflatex
/usr/texbin/pdflatex
どちらのパスも.bash_profile
私のhome
ディレクトリにあります。私の Tex インストールには、フレーム化されたパッケージがあります。
PATH=$PATH:/usr/texbin/pdflatex
PATH=$PATH:/usr/texbin/kpsewhich
export PATH
解決
.rprofile
これを私の修正済みに追加します:
Sys.setenv("PATH" = paste(Sys.getenv("PATH"),"/usr/texbin",sep=":"))