A step to check an R package. Best used with one of the inbobmk images. This is a stable fork of r-check by Jim Hester
- inbobmk/r-check
warnings_are_errors
(optional). IfTRUE
then treat WARNINGS fromR CMD check
as errors.
Basic usage:
- inbobmk/r-check
If you want warnings to fail the build.
- inbobmk/r-check:
warnings_are_errors: TRUE
The MIT License (MIT)
Copyright (c) 2015 Jim Hester
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- don't show file info of output files in case of fail so the the content of the files is displayed
- bugfix: errors trigger failure
- no longer use the deprecated cleanup = FALSE
- remove run_dont_test argument as it isn't supported in all versions of devtools
- add run_dont_test argument
- Make a fork for inbobmk
- Use info rather than echo for filenames when dumping files
- Use warn instead of warning, actually cat the output.
- Add R keyword
- Use Warning for messaging rather than echo
- initial release