-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps and documentation for Recipe: Compile Rnw files #2005
Comments
The default value for {
"name": "rnw2pdf",
"command": "Rscript",
"args": [
"-e",
"knitr::knit2pdf('%DOCFILE%')"
],
"env": {}
} You probably modified the value of Nobody in the development team uses
|
He says
So, this issue might be related to the environment variable, |
@tamuratak I don't think so as he says that once the |
Thanks for the conversation. As I mentioned, I was getting rnw2pdf not found error initially. Then I added rnw2pdf code to latex-workshop.latex-tools after following the earlier conversation on this subject in late January in this group. Also, no log file is being generated after the run. Only tex and pdf files are being generated. I have tested that rnw file with rstudio and ever works fine there. If required, I will be more than happy to reinstall Latex Workshop at my end to replicate this experience. I have provided the extension log and the compiler log below. Regards. |
The Latex Workshop extension log is as below
|
The compiler log is as below
|
The support of The recipe used to compile these files is now
where the tool {
"name": "rnw2tex",
"command": "Rscript",
"args": [
"-e",
"knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')"
],
"env": {}
} First, we generate the If you know how to test the development version (see https://github.com/James-Yu/LaTeX-Workshop/blob/e177be953f37a101dbfeb9e96f1561c08be74bfe/CONTRIBUTING.md), I would be happy to have a feedback. |
All:
Would appreciate any documentation on using Recipe: compile Rnw files feature.
My Rnw file is set up with language Latex. When I tried compiling it as a Rnw file, I got the error rnw2pdf not found.
Based on the posted discussions, I added the following under in settings.json file under latex-workshop.latex.tools:
Now when I compile with Recipe: compile Rnw files, the code goes through and I get a pdf output. I do not get any log file. And I think synctex may not be working.
I have attached the rnw file as a zip file.
What are the right steps for compiling a Rnw file?
Also, any documentation on this would be highly appreciated.
Quite excited about being able to edit and compile Rnw files in Latex Workshop.
Raghu
knitr_basic_example.zip
The text was updated successfully, but these errors were encountered: