Rmarkdown Background Process Failure
See original GitHub issueSystem: Fedora 35 (but also failed with Fedora 34)
What happens: Knitting a file in the current R terminal (radian) works fine. When I try to use the extension to preview the resulting file (or if I use the background process i.e., smart knitting) to knit my rmarkdown file, I instead get the following error
Error in cat(lim, eval(parse(text = knit_command)), lim, sep = "") :
object 'lim' not found
Which I deduce from vscode-R/R/rmarkdown/knit.R
has to do with the line
lim <- Sys.getenv("VSCR_LIM")
The same also occurs with a “fresh” install of VSCode (deleting all config / extensions, loading the vscode-R extension only). Maybe some explanation of the logic in the knit.R
file can assist in debugging.
EDIT: The extension was previously working fine for me. Possibly this recent PR #784 broke functionality for me. Confirmed that reverting to extension version 2.2.0 fixed this functionality regression for me.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13
Hi again @AndrewCSQ and @Albatrosses-reply, the latest push to the repo should have fixed this issue. If you find you still run into it, please feel free to open!
HI, i had a similar issue.
Error in cat(lim, rmarkdown::render(file_path, output_format = set_html, : object 'lim' not found
Likewise, when I downgraded to 2.2.0, it worked normally. Will it be able to be fixed through an upgrade in the future?