Skip to content

add uvr bootstrapping like renv when #87

@B-Nilson

Description

@B-Nilson

when opening an R session in a project with renv enabled, but renv not installed, there is some code run (started by the .Rprofile, calls the renv/activate.R script) that bootstraps the install of renv.

For uvr, we could have it install the uvr-r package if not installed, then use that to install the uvr CLI.

Here is what it looks for renv in a project where I updated R so don't have any packages installed for that version yet (including renv):

 $ R

R version 4.6.0 (2026-04-24) -- "Because it was There"
Copyright (C) 2026 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

# Bootstrapping renv 1.1.5 ---------------------------------------------------
- Downloading renv ... OK
- Installing renv  ... OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions