vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

code chunks in .Rmd file appear to use computer directory for libraries and not renv project folder

Open quantitative-ecologist opened this issue 2 years ago • 1 comments

Describe the bug Hello, sorry if I do not provide any reprex but I am not sure how to do so for my specific problem.

I was wondering why running code chunks in my .Rmd file results in errors telling that x package is not installed, when I have it installed in the .renv folder of my main project folder. Is there a way to specify the path somewhere so that any code chunks in the .Rmd file look for packages in .renv and not in my computer folders?

When I installed the package outside of my folder, running the code chunk worked, so I believe that it is looking for libraries outside of the project folder

Environment:

  • OS: Windows 11 Pro
  • VSCode Version: 1.78.2
  • R Version: 4.1.3
  • vscode-R version: 2.8.0

quantitative-ecologist avatar Jun 02 '23 19:06 quantitative-ecologist

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Jun 02 '24 01:06 github-actions[bot]