rstudio / packrat

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

Fix gitlab url for subgroups #699

Closed galachad closed 1 year ago

galachad commented 1 year ago

Another gitlab bug to fix cc: @aronatkins.

This change allow install packages from subgroups.

Example: https://gitlab.com/main518/child/skeleton

Minimal reproduce example:

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

library(shiny)
library(skeleton)

ui <- fluidPage(

)

server <- function(input, output) {

}

shinyApp(ui = ui, server = server)

The / needs to be replace with %2F for RemoteRepo.

> packageDescription("skeleton")
Package: skeleton
Title: A skeleton R package.
Version: 1.0.1
Author: Kevin Ushey
Description: Doesn't really do anything.
Depends: R (>= 3.0.1)
License: GPL (>= 2)
Encoding: UTF-8
LazyData: true
RemoteType: gitlab
RemoteHost: gitlab.com
RemoteRepo: child/skeleton
RemoteUsername: main518
RemoteRef: HEAD
RemoteSha: 958296dbbbf7f1d82f7f5dd1b121c7558604809f
NeedsCompilation: no
Packaged: 2023-01-09 13:25:41 UTC; forysa
Built: R 4.0.5; ; 2023-01-09 13:25:41 UTC; unix

-- File: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/skeleton/Meta/package.rds 
aronatkins commented 1 year ago

Replaced by https://github.com/rstudio/packrat/pull/700.