How to activate renv in notebook #4695
Labels
area: environment
Issues related to Environment category.
area: notebooks
Issues related to Notebooks category.
enhancement
New feature or request
lang: r
support
Milestone
Logging an issue from a discussion to consider an enhancement for renv management for notebooks in subfolders, and whether the "project" level environment should be set for those notebook sessions automatically if found.
Discussed in #4687
Originally posted by rbudnar September 14, 2024
Hi all!
My apologies if this is answered elsewhere or if I'm just missing something obvious (I'm a bit of a newcomer to R as well, coming from python). I was testing out using Jupyter notebooks in positron and I was wondering if it is possible to use the local renv for packages. Renvs work great in R scripts without me having to do anything, but in a notebook context it doesn't find my renv-installed packages (where my notebook is under the
src
folder). After messing around for a while, this looks like it worked inside my notebook:My question is - is there a better way to do this? Messing around with paths can get clunky, especially if I need to move things around.
Thank you!
The text was updated successfully, but these errors were encountered: