Can anyone run testthat tests for a minimal R package using GitLab.com continuous integration tools?
My attempt:
https://gitlab.com/djchapman/CI_example
This is the .gitlab-CI.yml text I am using,
image: rocker/rstudio
test:
script:
- R -e 'install.packages(c("devtools", "testthat"))'
- R CMD build . --no-build-vignettes --no-manual
- PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
- R CMD check "${PKG_FILE_NAME}" --no-build-vignettes --no-manual
- R -e 'devtools::test()'
It is adapted from this website. I realize that devtools has dependencies which may need to be included as packages are installed, and I tried that, but the libraries for git2r didn't seem to install correctly, and now I wonder if I'm going about it wrong. Thanks.
devtools::test()
? Checking a package includes running the tests. – Carollcarolle