Skip to content

Cannot install branches that have @ in ref #2135

@averissimo

Description

@averissimo

renv fails to resolve remote branches that have @ requiring the escaped entity %40 instead.

renv::install("insightsengineering/teal.reporter@redesign@main")
#> Error: failed to resolve remote 'insightsengineering/teal.reporter@redesign@main' -- failed to parse remote spec 'insightsengineering/teal.reporter@redesign@main'

Created on 2025-05-16 with reprex v2.1.1

While pak::pak() and pkgdepends::parse_pkg_ref parse the same ref without issues.

pkgdepends::parse_pkg_ref("insightsengineering/teal.reporter@redesign@main")
#> $package
#> [1] "teal.reporter"
#> 
#> $username
#> [1] "insightsengineering"
#> 
#> $repo
#> [1] "teal.reporter"
#> 
#> $subdir
#> [1] ""
#> 
#> $commitish
#> [1] "redesign@main"
#> 
#> $pull
#> [1] ""
#> 
#> $release
#> [1] ""
#> 
#> $ref
#> [1] "insightsengineering/teal.reporter@redesign@main"
#> 
#> $type
#> [1] "github"
#> 
#> $params
#> character(0)
#> 
#> attr(,"class")
#> [1] "remote_ref_github" "remote_ref"        "list"

Created on 2025-05-16 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions