Question: I am having difficulty in installing rpart.control. I keep getting the following error message > install.packages(rpart.control) WARNING: Rtools is required to build R packages but

I am having difficulty in installing rpart.control. I keep getting the following error message

> install.packages("rpart.control")

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/

Installing package into 'C:/Users/Admin/Documents/R/win-library/4.0'

(as 'lib' is unspecified)

Warning in install.packages :

package 'rpart.control' is not available (for R version 4.0.0)

> install.packages('rpart.control',repos='http://cran.us.r-project.org')

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/

Installing package into 'C:/Users/Admin/Documents/R/win-library/4.0'

(as 'lib' is unspecified)

Warning in install.packages :

unable to access index for repository http://cran.us.r-project.org/src/contrib:

scheme not supported in URL 'http://cran.us.r-project.org/src/contrib/PACKAGES'

Warning in install.packages :

package 'rpart.control' is not available (for R version 4.0.0)

Warning in install.packages :

unable to access index for repository http://cran.us.r-project.org/bin/windows/contrib/4.0:

scheme not supported in URL 'http://cran.us.r-project.org/bin/windows/contrib/4.0/PACKAGES'

>

> install.packages("lib")

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/

Installing package into 'C:/Users/Admin/Documents/R/win-library/4.0'

(as 'lib' is unspecified)

Warning in install.packages :

package 'lib' is not available (for R version 4.0.0)

> library(rpart.control)

Error in library(rpart.control) :

there is no package called 'rpart.control'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!