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

Use continuous integration to run R CMD check #128

Open
kelly-sovacool opened this issue Oct 18, 2023 · 0 comments
Open

Use continuous integration to run R CMD check #128

kelly-sovacool opened this issue Oct 18, 2023 · 0 comments

Comments

@kelly-sovacool
Copy link
Member

Currently, devtools::check() fails locally for me due to #126 & #127 with:

── R CMD check results ──────────────────────────────────────────────────────────────────── DSPWorkflow 1.2.0.0 ────
Duration: 14.2s

❯ checking package dependencies ... ERROR
  Packages required and available but unsuitable versions:
    'dplyr', 'GeomxTools', 'ggforce', 'ggplot2', 'grid', 'gtable',
    'knitr', 'NanoStringNCTools', 'patchwork', 'stats', 'SpatialDecon',
    'tibble', 'tidyr', 'umap', 'ComplexHeatmap'
  
  Depends: includes the non-default packages:
    'Biobase', 'BiocGenerics', 'cowplot', 'dplyr', 'GeomxTools',
    'ggforce', 'ggplot2', 'gridExtra', 'grid', 'gtable', 'knitr',
    'NanoStringNCTools', 'patchwork', 'reshape2', 'Rtsne', 'scales',
    'SpatialDecon', 'tibble', 'tidyr', 'umap', 'magrittr',
    'ComplexHeatmap'
  Adding so many packages to the search path is excessive and importing
  selectively is preferable.
  
  See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
  manual.

1 error ✖ | 0 warnings ✔ | 0 notes ✔

I would recommend creating a GitHub Action that automatically runs check on pushes & pull requests on the default branch. Here's an example: https://github.com/r-lib/actions/blob/v2/examples/check-standard.yaml

This way you'll know the package is at least installable on any new pushes/PRs.

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

1 participant