How to debug rsweave

I have a file rsweavethat I run almost twice a week. The last time I used it, a few things changed, and when I ran it to compile to pdf, I got the following errors: the enter image description here PDF is compiling, and the only thing I noticed was that the error was that the output in pdf format has an extra page (first), everything is blank. I do not know how to make a reproducible example of errors, because I do not know what is the reason. But somehow I just want to know how to debug a file rsweavewhen receiving a latex error, such as the image in the picture

+4
source share
1 answer

, Sweave, RStudio. - , Sweave R, . source.Rnw,

Sweave('source.Rnw')

source.tex. . , \Schunk 27, \begin{document} , .

, . \begin{document}.

: , print(...) \begin{document}. Sweave print. , , , message("some text"). , . ,

<<echo=FALSE,results=hide>>=
message("Started at ", Sys.time())
@

- :

 1 : keep.source term hide (Untitled.Rnw:6)
Started at 2017-09-27 08:28:33

.

0

Source: https://habr.com/ru/post/1685899/


All Articles