I am attempting to install the mvpart package which is archived.
I am using R version 4.3.1, RStudio 2023.6.1, and do have RTools 4.3 installed on my PC.
I have attempted two alternative ways to install the package and both have produced errors.
Method 1 was using devtools to retrieve the package from github
install.packages("devtools")
library(devtools)
devtools::install_github("cran/mvpart")
Method 2 - Downloading from CRAN archive and installing
url <- "http://cran.us.r-project.org/src/contrib/Archive/mvpart/mvpart_1.6-2.tar.gz"
pkgFile<-"mvpart_1.6-2.tar.gz"
download.file(url = url, destfile = pkgFile)
install.packages("C:/Users/user/Downloads/mvpart_1.6-2.tar.gz", repos = NULL, type = "source")
I solve the problem by getting the archived version of the
mvpart(mvpart_1.6-2.tar.gz), then useR 4.1.0to install it.