devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Can I override the `check` path?

Open yoni opened this issue 13 years ago • 3 comments

I'm running continuous integration builds on a Jenkins server and need the R CMD check output to remain in the project working directory. Otherwise, I can't diagnose the issues on build failures.

I've tried a couple of approaches, including passing check(..., args=c('--output', 'my_check_dir')). The problem is, I'm pretty sure devtools overrides the path separately, resulting in a conflict.

yoni avatar Aug 05 '13 14:08 yoni

It doesn't look like it. What about patching check() to return r_cmd_check_path in the case of failure, and then you could add custom handling? Alternatively, we could add the check_dir param to check() and pass that on down to check_r_cmd()

hadley avatar Aug 08 '13 15:08 hadley

Thanks for the response, @hadley. :)

Returning r_cmd_check_path implies that the caller needs to add error handling to their code. I like the top-down check_dir option better.

yoni avatar Aug 08 '13 17:08 yoni

Thanks for adding this, @hadley! It was on my TODO list, but I never quite got the time.

yoni avatar Oct 07 '13 19:10 yoni