installing archived (mvpart) package in newer R versions

106 Views Asked by At

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")

The Error

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")

The Error

1

There are 1 best solutions below

0
Kevin James On

I solve the problem by getting the archived version of the mvpart (mvpart_1.6-2.tar.gz), then use R 4.1.0 to install it.