Skip to content

make renv sysreqs feature usable with RedHat based linux distros #2105

@michaelmayer2

Description

@michaelmayer2

With the latest release of renv I get

> sysreqs(packages=x$Package,distro="centos")
The requisite system packages can be installed with:
- sudo <install> -y cmake
- sudo <install> -y gdal
- sudo <install> -y gdal-devel
- sudo <install> -y geos-devel
- sudo <install> -y libcurl-devel
- sudo <install> -y libicu-devel
- sudo <install> -y libxml2-devel
- sudo <install> -y make
- sudo <install> -y openssl-devel
- sudo <install> -y pandoc
- sudo <install> -y pandoc-citeproc
- sudo <install> -y proj-devel
- sudo <install> -y proj-epsg
- sudo <install> -y sqlite-devel
- sudo <install> -y udunits2-devel
- sudo <install> -y v8-devel
- sudo <install> -y xz

Depending on the RedHat version it should use either yum or dnf instead of <install> - Nit-pickingly one even could consider clubbing all the lines together in one yum/dnf call like yum install -y cmake gdal gdal-devel....

On a related note: sysreqs at the moment does not consider any pre_install or post_install scripts (cf. https://github.com/rstudio/r-system-requirements/blob/fb86c68dcfd51a80034dcad925bdf7660cfc2bd2/rules/libwebp.json#L57-L61)

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