Problem loading the previously used libraries in R

39 views Asked by At

I was trying to use these libraries:

library(kernlab)  
library(kknn)  
library(tidyverse)  
library(ggplot2)  
library(dplyr)  
library(magrittr)  
library(caret) 
library(e1071) 
library(class)

They worked before.

After I clear the environment, I can no longer load the libraries.

Here is the error message I have:

install.packages("kernlab")

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/fiona/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/kernlab_0.9-32.zip'
Content type 'application/zip' length 2513530 bytes (2.4 MB)
downloaded 2.4 MB

Any help is appreciated.

I downloaded the RStudio and Rtools again. It still didn't install the packages properly.

0

There are 0 answers