r-system-requirements icon indicating copy to clipboard operation
r-system-requirements copied to clipboard

Debian support?

Open eitsupi opened this issue 3 years ago • 4 comments

It would be great if Debian10 and Debian11 were added as it seems Debian9 was recently removed. #107

Related to r-lib/pak#418

eitsupi avatar Sep 25 '22 05:09 eitsupi

Hi @eitsupi, this repo did launch with Debian 9 support, but Debian has never actually been supported by RStudio Package Manager. RSPM is the main driver for the supported platforms here, and we don't have any immediate plans to support Debian.

However, we do internally track feature requests to add Debian support for R binary packages and system requirements, and I'll add this issue to that list. If you any more details about your use case, that would help too. For example, are you running Debian at home or work; are you using the Debian-based Rocker images; are you looking for Debian binary packages as well?

glin avatar Oct 03 '22 21:10 glin

Thanks for the reply and explanation. I didn't know the historical background of this repository and your explanation makes sense as to why only Debian 9 was supported.

I usually run R on an Ubuntu-based Docker image to install R binary packages from RSPM. However, Docker images for many languages are Debian-based, and if we want to install additional R packages on such images (I recently created https://github.com/rocker-org/devcontainer-features/tree/main/src/r-rig to achieve that.), it is useful to have an easy way to check the dependencies of the R packages. I thought I could do it with pak, but pak probably depends on this repository and seems to have recently lost the ability to do so?

I don't think it distinguishes between Debian and Ubuntu on the general error message if the R package fails to install due to lack of dependent libraries. So I was just surprised that pak can show the dependent libraries only in the case of Ubuntu.

eitsupi avatar Oct 05 '22 13:10 eitsupi

Thanks for explaining those use cases, that helps a lot.

RSPM never supported Debian in its system requirements API endpoints, which I believe pak uses, so I'm not sure how pak would've had Debian support unless it was through some other way. (And btw, https://github.com/rstudio/r-system-requirements/pull/107 only removed the CI tests on Debian 9, the existing Debian rules in this repo were kept).

Ubuntu and Debian are similar enough that you could probably use the equivalent Ubuntu release for system requirements in most cases, but there are a few small differences where this wouldn't work:

  • when there's no equivalent Debian release for the Ubuntu version. e.g., Ubuntu 22 is based on an unreleased version of Debian, so there are differences like Ubuntu 22 using libssl3 while Debian 11 only has libssl1.1
  • when a rule uses an Ubuntu PPA, but this is uncommon and typically only for older Ubuntu versions

You could also consider using R-hub's sysreqsdb, which still actively supports Debian, and has a client API and R package: https://github.com/r-hub/sysreqsdb

glin avatar Oct 05 '22 18:10 glin

Thanks for the explanation, the pak package seemed to have supported debian in the past, so I mistakenly thought that had something to do with this update. Definitely I need to understand more about the detailed mechanism.......

eitsupi avatar Oct 10 '22 10:10 eitsupi

Late update here but we added Debian support a while back, and Package Manager has supported binary packages for Debian as well.

glin avatar Sep 26 '24 22:09 glin