Brms installation problems on ubuntu 22.04.1 LTS

Thank you very much for your post!

I have tried the following to update to the current developmental version:

if (!requireNamespace("remotes")) {
  install.packages("remotes")
}
remotes::install_github("paul-buerkner/brms")

Which has worked without issues, so I assume the update to the developmental version worked – the error messages remain the same for all cases.

The problems I had while installing were that it got stuck at pretty much each step along the way and complained about something missing, unfortunately I do not precisely remember what these things were. I do remember that at some point I installed liblapack-dev and libopenblas-dev, which made something along the way work, and I do remember that before the brms installation stopped complaining, I shut down Rstudio and reopened it (I have restarted the machine as well ;).

Something I have found to be slightly weird: When I try to install the package “devtools”, I get the following errors:

ERROR: configuration failed for package ‘xml2’
* removing ‘/home/chrisd/R/x86_64-pc-linux-gnu-library/4.2/xml2’
Warning in install.packages :
  installation of package ‘xml2’ had non-zero exit status
ERROR: dependency ‘textshaping’ is not available for package ‘ragg’
* removing ‘/home/chrisd/R/x86_64-pc-linux-gnu-library/4.2/ragg’
Warning in install.packages :
  installation of package ‘ragg’ had non-zero exit status
ERROR: dependency ‘xml2’ is not available for package ‘roxygen2’
* removing ‘/home/chrisd/R/x86_64-pc-linux-gnu-library/4.2/roxygen2’
Warning in install.packages :
  installation of package ‘roxygen2’ had non-zero exit status
ERROR: dependency ‘xml2’ is not available for package ‘rversions’
* removing ‘/home/chrisd/R/x86_64-pc-linux-gnu-library/4.2/rversions’
Warning in install.packages :
  installation of package ‘rversions’ had non-zero exit status
ERROR: dependency ‘xml2’ is not available for package ‘urlchecker’
* removing ‘/home/chrisd/R/x86_64-pc-linux-gnu-library/4.2/urlchecker’
Warning in install.packages :
  installation of package ‘urlchecker’ had non-zero exit status
ERROR: dependencies ‘ragg’, ‘xml2’ are not available for package ‘pkgdown’
* removing ‘/home/chrisd/R/x86_64-pc-linux-gnu-library/4.2/pkgdown’
Warning in install.packages :
  installation of package ‘pkgdown’ had non-zero exit status
ERROR: dependencies ‘pkgdown’, ‘roxygen2’, ‘rversions’, ‘urlchecker’ are not available for package ‘devtools’
* removing ‘/home/chrisd/R/x86_64-pc-linux-gnu-library/4.2/devtools’
Warning in install.packages :
  installation of package ‘devtools’ had non-zero exit status

Wondering: Could it be something like the whole combination of R 4.2.2 and Ubuntu 22.04 isn’t working?

Any further tips would be much appreciated!