steno-aarhus / osdc

Open-Source Diabetes Classifier: an R package to classify diabetes status in Danish registers
https://steno-aarhus.github.io/osdc/
Other
1 stars 1 forks source link

ci: Add files that tell GitHub to run checks on the package #17

Closed lwjohnst86 closed 8 months ago

lwjohnst86 commented 10 months ago

This PR adds a file in the .github/workflows/ folder that tells GitHub to run an "Action" on the contents of the repository. In this case the action is to run checks on the package and test that things work in an independent and clean environment. Right now, the action uses a very basic R check that would not be suitable for a CRAN submission, but is a good starting point.

By the way, I created this using usethis::use_github_action("check-release"). :grin:

lwjohnst86 commented 9 months ago

@signekb and @Aastedet please look this over and approve and then merge in :relaxed:

signekb commented 9 months ago

@Aastedet The R-CMD check fails with the following error message:

L71: * checking whether package ‘osdc’ can be installed ... ERROR
L72: Error: Installation failed.
[...]
L92: Error: Error in here("R/packages.R") : could not find function "here"
L93: Error: Error: unable to load R code in package ‘osdc’

It seems that the following scripts call source(here::here("R/packages.R)) and R/packages.R doesn't exist:

lwjohnst86 commented 8 months ago

@signekb there will be lots of errors for a while, as we fix issues one by one.