You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 20.04 LTS环境下R 4.2.1版本无法安装ggvoronoi包的求助

Fixing the "ggvoronoi not available" Error in R

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.27 17:52:38