Skip to content

Smart Knit does not respect .RProfile / {renv} #800

@beansrowning

Description

@beansrowning

Describe the bug
Smart/background knitting session ignores workspace .RProfile. This is an issue in my case, as I use {renv} and the background process can't locate the library path even when the working directory is changed to "workspace root".

To Reproduce
Steps to reproduce the behavior:

  1. Pull up any rmarkdown template
  2. use {renv} to install dependencies
  3. Run "Knit"
  4. See error

Do you want to fix by self? (We hope your help!)

I can assist, but don't code in TS normally.

Expected behavior
Smart knit either launches non-vanilla by default, or has an additional option to respect workspace environment.

Screenshots
If applicable, add screenshots to help explain your problem.

image

Environment (please complete the following information):

  • OS: Win 10
  • VSCode Version: 1.61.0-insider
  • R Version: 4.1.0
  • vscode-R version: 2.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions