-
Preliminary questions [Required]I tried compiling a .Rnw with LaTeX Workshop, which rendered the error message "Error in readRDS(pfile): cannot read workspace version 3 written by R 3.1.2 (need R 3.5.0 or newer)" Disable all the other extensions except for LaTeX Workshop, restart VS Code, and check that you still see this issue. [Required]You still see this issue?: Yes Make sure to visit the wiki FAQ before filling an issue.You visited the wiki?: Yes If your issue is with compiling a document (not having to do with finding the root file of a project), check first that you can compile manually.You can compile a TeX document manually?: I can now. Describe the bug [Required]I googled around a bit. Seemingly this issue had to with having different versions of R. I have an older version of R installed in Anaconda, which I haven't used. My system To ReproduceSteps to reproduce the behavior:
Expected behaviorGeneration of PDF. LogsLaTeX Workshop extension log
LaTeX compiler logs
Desktop [Required]Please write exact version numbers. Please don't write
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
It is very important to have access to the logs to identify the issue. So please add them to your initial post. This is likely an issue with how you set your environment variable |
Beta Was this translation helpful? Give feedback.
-
Compiling I changed back to the original |
Beta Was this translation helpful? Give feedback.
-
You did not get my point. If LW is not using the correct version of Please post the complete logs of the extension starting from You will find the value of |
Beta Was this translation helpful? Give feedback.
-
Sorry, I got a bit confused there why you wanted me to check TeXLive's path and what you wanted me to do. I reset folder names, and tried compiling again in a new window. I have attached the full log from both LaTeX Workshop extension and LaTeX compiler. |
Beta Was this translation helpful? Give feedback.
-
From the extension logs
This is why the When, you launch VS Code from a terminal using |
Beta Was this translation helpful? Give feedback.
-
If you are referring to I tried to explain in my other post on issue #3029, I deleted the R file in Typing "R" in terminal yields:
Which means R 4.1.2 must be set in $PATH, right? |
Beta Was this translation helpful? Give feedback.
-
Not necessarily, The
This value of the
Note that the recipe for compiling |
Beta Was this translation helpful? Give feedback.
-
Hmm, that may actually be what's causing it. There is an
As mentioned, replacing the
Hopefully, this will prevent any further issues. |
Beta Was this translation helpful? Give feedback.
Not necessarily, The
PATH
used by VS Code when running a recipe isThis value of the
PATH
may be different from the one you have in a terminal (even in the terminal pane of VS Code). Check by runningecho $PATH
.Note that the recipe for compiling
.rnw
files looks for aRscript
executable and not directly forR
. You may have aRscript
pointing to the wrongR
…