Skip to content

Handle R version requirements expressed with svn revision numbers #463

Description

@gaborcsardi

Via @jeroen

> readLines('https://jeroen.github.io/myrepo/PACKAGES')
[1] "Package: test"
[2] "Version: 0.1.0"
[3] "Depends: R (>= r81283)"
[4] "License: GPL (>= 3)"
[5] "MD5sum: 411f63969dc35cd8388e474ed9c2d9f6"
[6] "NeedsCompilation: no"
> pkgcache::repo_add(CRAN = "https://jeroen.github.io/myrepo")
> options(pkg.use_bioconductor = FALSE)
> pak::meta_list()
✔ Updated metadata database: 10.51 kB in 2 files.
ℹ R 4.6 aarch64-apple-darwin23 packages are missing from CRAN: Not Found (HTTP 404).
✔ Updating metadata database ... done
# A data frame: 1 × 23
  package version depends       license md5sum needscompilation repodir rversion
  <chr>   <chr>   <chr>         <chr>   <chr>  <chr>            <chr>   <chr>
1 test    0.1.0   R (>= r81283) GPL (>… 411f6… no               src/co… *
# ℹ 15 more variables: platform <chr>, priority <chr>, ref <chr>, type <chr>,
#   direct <lgl>, status <chr>, target <chr>, mirror <chr>, sources <list>,
#   filesize <int>, sha256 <chr>, sysreqs <chr>, built <chr>, published <dttm>,
#   deps <list>
> pak::pkg_install("test")
Error:
! error in pak subprocess
Caused by error:
! invalid version specification 'r81283'
Type .Last.error to see the more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions