`#镜像安装
utils::install.packages('xROI', repos = "https://cran.r-project.org" )
#调用terra替换功能
options("rgdal_show_exportToProj4_warnings"="none")
options("sp_evolution_status"=2)
utils::install.packages('devtools', repos = "https://cran.r-project.org/" )
library(usethis)
library(devtools)
devtools::install_github("bbcrown/xROI")`
using Rstudio 1.4.1717 R 4.3.1, but still cannot bypass the rgdal dependency when installing xROI.
error warning like this
`ERROR: dependency 'rgdal' is not available for package 'xROI'
- removing 'D:/0_Program_Files/5_Programming/R/R-4.3.1/library/xROI'`