[R] compiling Rmd - can't find tex file....

Witold E Wolski wewolski at gmail.com
Thu Aug 27 16:37:57 CEST 2015


to answer my own question.

I did not find out what knit2pdf is good for
but rmarkdown::render does the job.

regards




On 26 August 2015 at 11:46, Witold E Wolski <wewolski at gmail.com> wrote:

> I am using from within R-studio and the .Rmd file builds nicely.
>
> However, when I try to compile the fiel using :
>
> knit2pdf( "specL.Rmd", output=file.path("res.12345","specL.pdf") )
> I am getting tex errors (see below). When I wan't to check what's wrong I
> can't find the tex file.
> Any ideas?
>
> Thank you
>
>
> PS: Errors:
>
>  |..............................................................   |  95%
>
> label: writepepProt
>
>   |.................................................................| 100%
>
>   ordinary text without R code
>
>
>
> *output file: res.12345/specL.pdf*
>
>
> *Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,
> : *
>
> *  Running 'texi2dvi' on 'specL.pdf' failed.*
>
> *LaTeX errors:*
>
> *! Missing $ inserted.*
>
> *<inserted text> *
>
> *                $*
>
> *<to be read again> *
>
> *                   _*
>
> *! Missing $ inserted.*
>
> *<inserted text> *
>
> *                $*
>
> *<to be read again> *
>
> *                   \par *
>
> *! You can't use `macro parameter character #' in horizontal mode.*
>
> *l.15 #*
>
>
>
>
>
>
> --
> Witold Eryk Wolski
>
>


-- 
Witold Eryk Wolski

	[[alternative HTML version deleted]]



More information about the R-help mailing list