I am trying to use 'rfe' function from 'caret':
lmProfile <- rfe(x=trainData[, 0:(ncol(trainData)-1)], y=trainData$target,
sizes = subsets,
rfeControl = ctrl)
but I get the following error:
Error: package e1071 is required
I am running my code in Jupiter Notebook. I've installed both 'caret' and 'e1071' packages:
install.packages('e1071', dependencies=TRUE)
install.packages('caret', dependencies = TRUE)
I also tried the following in the terminal:
conda install -c r r-e1071
conda install -c conda-forge r-e1071
conda install -c conda-forge/label/gcc7 r-e1071
conda install -c conda-forge/label/cf201901 r-e1071
conda install -c conda-forge/label/cf202003 r-e1071
I always got the same error message.
Any suggestions?