pak icon indicating copy to clipboard operation
pak copied to clipboard

Add Ubuntu 22.04 to the list of supported OS versions

Open rstub opened this issue 3 years ago • 1 comments

rstub avatar Sep 01 '22 16:09 rstub

Converting to draft mode since I currently get an error

Error in load_private_package("glue") : 
  Cannot load glue from the private library

independent of whether I use this patch or not. Need to figure that out, first.

rstub avatar Sep 01 '22 16:09 rstub

Any update on this?

eitsupi avatar Jan 03 '23 07:01 eitsupi

Note that pak does not use these functions when installing system requirements and they will be deprecated in the next release.

Nevertheless, if you think this is ready for review, then remove the "draft" status please.

gaborcsardi avatar Jan 03 '23 10:01 gaborcsardi

At the moment one gets:

> pak::pkg_system_requirements("curl", os = "ubuntu", os_release = "22.04")
Error: 
! error in pak subprocess
Caused by error in `match.arg(os_release, os_versions[[os]])`:
! 'arg' should be one of “14.04”, “16.04”, “18.04”, “20.04”
Type .Last.error to see the more details.

With this patch one gets:

> pak::pkg_system_requirements("curl", os = "ubuntu", os_release = "22.04")
[1] "apt-get install -y libcurl4-openssl-dev libssl-dev"

@gaborcsardi If the patched function will become deprecated, what is the correct way to support Ubuntu 22.04?

rstub avatar Jan 25 '23 11:01 rstub

@gaborcsardi If the patched function will become deprecated, what is the correct way to support Ubuntu 22.04?

pak supports Ubuntu 22.04 already. If you opt in, it installs system requirements automatically, see "PKG_SYSREQS" here: https://pak.r-lib.org/reference/pak-config.html

gaborcsardi avatar Jan 25 '23 11:01 gaborcsardi

That works with Ubuntu proper but not Ubuntu derived distributions, c.f. #396. In addition, I think it is useful to have a function that just returns the necessary package installation steps w/o executing them. Is there a replacement when pak::pkg_system_requirements gets deprecated?

rstub avatar Jan 27 '23 12:01 rstub

Thanks!

gaborcsardi avatar Jan 27 '23 12:01 gaborcsardi