Hi Andresrcs,
I did try to load "ipred " package but I am getting errors again
install.packages("ipred", dependencies = TRUE)
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/
There is a binary version available but the source version is
later:
binary source needs_compilation
ipred 0.9-11 0.9-12 TRUE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/ipred_0.9-11.zip'
Content type 'application/zip' length 401183 bytes (391 KB)
downloaded 391 KB
package ‘ipred’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Rekha Rao\AppData\Local\Temp\RtmpQz4lBT\downloaded_packages
After I tried installing "ipred" I tried again to re-install recipes and got the same error message
installing source package 'recipes' ...
** package 'recipes' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'ipred' 0.9-11 is being loaded, but >= 0.9.12 is required
Calls: ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'recipes'
- removing 'C:/Users/Rekha Rao/Desktop/R-3.6.3/library/recipes'
Warning in install.packages :
installation of package ‘recipes’ had non-zero exit status
Basically I am doing Harvard University Course. Trying to create Test and Training sets using CreateDataPartition and getting an error that there is no such function.
test_index <- createDataPartition(y, times = 1, p = 0.5, list = FALSE)
Error in createDataPartition(y, times = 1, p = 0.5, list = FALSE) :
could not find function "createDataPartition"
Thats y I am working backwards to understand what is causing this problem