caret-machine-learning
caret-machine-learning copied to clipboard
Automatically install caret as a package dependency
Hi,
I am writing an OpenCPU scoring package that utilizes caret and have it listed in the Imports: section in the package DESCRIPTION file. However, when I try to install my package it fails because the caret package install fails and I have to install caret and its dependencies manually first before installing my package. Is there an easier way to do this? I am looking to have a simple one line install of my package and all Dependencies and Imports get installed.
In the same vein, but maybe a separate issue. Is it possible to tell caret to install new packages required by the R script without prompting? Again, this is to reduce the manual installation aspects.
Thanks!
Hi, this would be best asked in the official caret section https://github.com/topepo/caret/issues Cheers Tobias
caret installs required packages on demand. You can to check all caret dependencies (Imports and Suggests) and add them to the Imports section in the DESCRIPTION file of your package.
@tobigithub Sorry about that. I thought this was the official caret section
@ddbs Thanks! Let me give this a go. If it doesn't work I'll head on over to the official caret github.