dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data
502 stars 77 forks source link

feat: add GHA for R CMD chek #166

Closed mcanouil closed 1 year ago

mcanouil commented 2 years ago

This PR add GHA workflow from r-lib/actions (https://github.com/r-lib/actions/blob/v2-branch/examples/check-standard.yaml) in order to check R package using Continuous integration to detect issues earlier than CRAN submission.

See #165

dcomtois commented 2 years ago

Thanks for this.... I wonder if additional packages might be added to the yaml template though...? Like magick for instance. This is totally new stuff to me.

mcanouil commented 2 years ago

Thanks for this.... I wonder if additional packages might be added to the yaml template though...? Like magick for instance. This is totally new stuff to me.

In theory, all packages needed to check the package are listed in DESCRIPTION. But, if for some reason, you need more you can add them in the following block of the yaml: https://github.com/dcomtois/summarytools/blob/bf08c345279cdc810e16f84b4adab6e1a5d926c0/.github/workflows/check-standard.yaml#L42-L45 See documentation at https://github.com/r-lib/actions/tree/v2-branch/setup-r-dependencies

dcomtois commented 1 year ago

Sorry for the delay. Merged. Many thanks.