I am using WinEdt 9.1 with RManager and pdflatex to knit PDF files from Rnw files. The process generally works well. But I cannot use "inverse search" from my PDF documents to my Rnw files. When I try to do so, WinEdt opens the corresponding .tex file -- not the .Rnw file that I actually need to edit. How may I fix this problem?
I understand that SyncTeX "doesn't know" about Rnw files. But I gather that this is exactly the problem that the "patchDVI" package for R is supposed to solve -- and that is why RManager requires that the package be installed. In any case, I do have the patchDVI package installed, but inverse search from my PDFs still takes me to the intermediate .tex files, not to the .Rnw files that I need to edit.
I have no problem using inverse search when my documents are ordinary .tex files instead of .Rnw files.
A search of this site turned up a few related posts, including a link to [this post]. A comment on the post led me to hope that I could solve the problem by going to Options > Execution Modes > PDFLaTeX and adding the "synctex=-1" switch when pdflatex is called. But that didn't help.