caret-machine-learning icon indicating copy to clipboard operation
caret-machine-learning copied to clipboard

Automatically install caret as a package dependency

Open chrisvwn opened this issue 7 years ago • 3 comments

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!

chrisvwn avatar Apr 28 '18 09:04 chrisvwn

Hi, this would be best asked in the official caret section https://github.com/topepo/caret/issues Cheers Tobias

tobigithub avatar Apr 29 '18 05:04 tobigithub

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.

ddbs avatar Apr 30 '18 10:04 ddbs

@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.

chrisvwn avatar May 02 '18 16:05 chrisvwn