Skip to content

Use CRAN's Archive #5264

Description

@rgaiacs

Most, if not all, of the recipes for R packages uses a URL that like https://cran.r-project.org/src/contrib/${{ name[2:] }}_${{ version }}.tar.gz. For example,

- https://cran.r-project.org/src/contrib/${{ name[2:] }}_${{ version }}.tar.gz
and
- https://cran.r-project.org/src/contrib/${{ name[2:] }}_${{ version }}.tar.gz

The problem with this URL is that it is only valid for the latest release of a R package. For example, before 24 March 2026 the URL https://cran.r-project.org/src/contrib/fs_1.6.6.tar.gz was valid but now it returns 404 not found.

To make recipes more resilient, I would like to change the URL from

https://cran.r-project.org/src/contrib/${{ name[2:] }}_${{ version }}.tar.gz

to

https://cran.r-project.org/src/contrib/Archive/${{ name[2:] }}/${{ name[2:] }}_${{ version }}.tar.gz

@IsabelParedes what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    RR language packages

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions