Ubuntu 20.04 LTS环境下R 4.2.1版本无法安装ggvoronoi包的求助
Hey there, let's get your ggvoronoi package up and running again! The root issue here is that ggvoronoi is no longer hosted on CRAN—that's why neither your old R 3.6.3 nor the updated R 4.2.1 can find it via install.packages().
Luckily, the package's source code is still maintained on GitHub. Here's a step-by-step fix tailored to your Ubuntu 20.04 + R 4.2.1 setup:
Step 1: Install the devtools package (if missing)
devtools lets you install R packages directly from GitHub. Run this in your R console:
install.packages("devtools")
If you hit a system dependency error, open your Ubuntu terminal first and install these required system libraries:
sudo apt-get install libcurl4-openssl-dev libssl-dev libxml2-dev
Step 2: Install ggvoronoi from GitHub
Once devtools is ready, use it to pull and install the package source:
library(devtools) install_github("garrettgman/ggvoronoi")
Step 3: Verify the installation
After the install finishes, load the package to confirm it works:
library(ggvoronoi)
If you don't see any error messages, you're all set to use ggvoronoi again!
内容的提问来源于stack exchange,提问作者Pratik Mullick

