When I run aportion of the code:
library(caret)
library(kernlab)
data(spam)
inTrain <- createDataPartition(y = spam$type, p = 0.75, list = FALSE)
R version 4.0.2 (2020-06-22) -- "Taking Off Again"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
[Workspace loaded from ~/.RData]
source("~/DataScience/RSCRIPTS/MACHINE LEARNING/caretpackage.R", echo=TRUE)
library(caret)
Loading required package: ggplot2
Loading required package: lattice
library(kernlab)
Attaching package: ‘kernlab’
The following object is masked from ‘package:ggplot2’:
alpha
data(spam)
#inTrain <- createDataPartition(y = spam$type, p = 0.75, list = FALSE)
#training <- spam[inTrain,]
#testing <- spam[-inTrain,]
#dim(training)
.... [TRUNCATED]
Warning messages:
1: package ‘caret’ was built under R version 4.0.5
2: package ‘ggplot2’ was built under R version 4.0.5
3: package ‘kernlab’ was built under R version 4.0.5
library(caret)
library(kernlab)
data(spam)
source("~/DataScience/RSCRIPTS/MACHINE LEARNING/caretpackage.R", echo=TRUE)
library(caret)
library(kernlab)
data(spam)
inTrain <- createDataPartition(y = spam$type, p = 0.75, list = FALSE)
Error in split_indices(as.integer(splitv), attr(splitv, "n")) :
function 'Rcpp_precious_remove' not provided by package 'Rcpp'I get the error below: