Skip to content

Rmarkdown Background Process Failure #860

@AndrewCSQ

Description

@AndrewCSQ

System: 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions