Running examples in 'patchSynctex-Ex.R' failed
The error most likely occurred in:

> ### Name: patchSynctex
> ### Title: Create correspondence between .pdf and .Rnw files
> ### Aliases: patchSynctex
> ### Keywords: ~interface ~documentation
> 
> ### ** Examples
> 
> if(requireNamespace("tools", quietly=TRUE) &&
+    requireNamespace("knitr", quietly=TRUE)) {
+     ## Minimal demonstrative knitr example.
+     RnwSrc<-"
+ \\synctex=1
+ \\documentclass{article}
+ <<Setup, eval=TRUE, echo=FALSE, results='hide'>>=
+ opts_knit$set(concordance=TRUE, self.contained=TRUE)##$
+ require(patchSynctex)
+ @ 
+ \\author{A.~U.~Thor}
+ \\title{A minimal \\textsf{knitr} example}
+ \\date{Some time}
+ \\begin{document}
+ \\maketitle
+ 
+ A first paragraph of text, which offers a target for forward search\\,:
+ for example, in \\textsf{emacs} with \\textsf{AUCTeX}, typing
+ ``C-c~C-v'' should bring you to your PDF viewer in the corresponding
+ typeset line.
+ 
+ <<TestFig, echo=FALSE>>=
+ curve(sin(x), from=-pi, to=pi, main='A curve generated by R',
+       sub='back-searching from here should bring you close to the \\'TestFig\\' chunk.')
+ @ 
+ 
+ This second paragraph of text is also a convenient target for
+ back-searching. For example, in \\textsf{evince}, a ``<Ctrl>-click''
+ should bring you to the \\textsf{noweb} source, bypassing the \\LaTeX
+ intermediate file.
+ \\end{document}
+ "
+     require(knitr)
+     cat(RnwSrc, file="Minimal.Rnw")
+     knit2pdf("Minimal.Rnw", quiet=TRUE)
+     D1<-file.info("Minimal.synctex.gz")$mtime
+     patchSynctex("Minimal", verbose=TRUE)
+     ## should print a message telling the number of patches
+     D2<-file.info("Minimal.synctex.gz")$mtime
+     D1!=D2
+     ## should return TRUE
+     ## To see the effect, try (example on a Linux system)
+     ## Not run: system("evince Minimal.pdf")
+ }
Loading required package: knitr
Warning in file(con, "r") :
  cannot open file 'Minimal.synctex.gz': No such file or directory
Error in patchSynctex("Minimal", verbose = TRUE) : 
  Minimal-concordance.texcannot be read, no patching done.
Execution halted