Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically install caret as a package dependency #39

Open
chrisvwn opened this issue Apr 28, 2018 · 3 comments
Open

Automatically install caret as a package dependency #39

chrisvwn opened this issue Apr 28, 2018 · 3 comments

Comments

@chrisvwn
Copy link

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!

@tobigithub
Copy link
Owner

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

@ddbs
Copy link

ddbs commented Apr 30, 2018

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.

@chrisvwn
Copy link
Author

chrisvwn commented May 2, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants