rstudio / packrat

Packrat is a dependency management system for R
http://rstudio.github.io/packrat/
399 stars 89 forks source link

escape GitLab repositories, as they may have paths #700

Closed aronatkins closed 1 year ago

aronatkins commented 1 year ago

In a new project, create an R script containing:

# remotes::install_gitlab("main518/child/skeleton")
library(skeleton)

Within that project, run the following:

packrat:::.snapshotImpl(".", implicit.packrat.dependency = FALSE, snapshot.sources = FALSE)
packrat::restore()

The restore downloaded package source from:

trying URL 'https://gitlab.com/api/v4/projects/main518%2Fchild%2Fskeleton/repository/archive?sha=958296dbbbf7f1d82f7f5dd1b121c7558604809f'

Replaces #699