I want to do supervised classification using the code below
t1972_sup<- superclass(t1972, model = "rf", train1972, responseCol = "id", trainPartition = 0.7)
However, I need to install RStoobox install.packages("RStoolbox")
for my random forest. I cant seem to win with this code and I have tried this writeup here but no win. I have since installed Rtools for R from version 4.0.0 to 4.1.3. I followed through the process Sys.which("make")
and getting this > Sys.which("make") make "C:\\rtools40\\usr\\bin\\make.exe"
.
When I try again to install RStoolbox, I get this error `> install.packages("RStoolbox") Installing package into ‘D:/Documents/R/win-library/4.1’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RStoolbox’ is not available for this version of R
A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages`
Could I be missing something? Please help
I have checked the link https://cran.r-project.org/bin/windows/Rtools/rtools40.html for guiding required RTools before installing RStoolbox on windows.