I jumped through many hoops, but I don't recall installing the few dependencies you mentioned. Instead, I executed the following to resolve the issue related to the R packages such as "units" and "sf" in your error list:
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev
Gang
Edited 1 time(s). Last edit at 09/23/2021 02:28PM by Gang.