I tried several ways to upload all relevant packages but still facing the issue with ggplot2. Tried everything, installed all packages...using R Studio 1.1.4 version
library(caret)
Error: package ‘ggplot2’ required by ‘caret’ could not be found
Is upgrade of R Studio the only way out finally? Please advise way forward.
Yes, I tried both. Still the below functions are not working
Error in createDataPartition(cars$Transport, p = 0.7, list = FALSE) :
could not find function "createDataPartition"
Could you please turn this into a self-contained reprex (short for reproducible example)? It will help us help you if we can be sure we're all working with/looking at the same stuff.
There's also a nice FAQ on how to do a minimal reprex for beginners, below:
What to do if you run into clipboard problems
If you run into problems with access to your clipboard, you can specify an outfile for the reprex, and then copy and paste the contents into the forum.