...
 
Commits (4)
# For Mac OS and Windows use 'R' or 'R4' tags depending of the R version needed.
# Author : Jean-François Rey <jean-francois.rey@inrae.fr>
stages:
- create
- tests
......
[![pipeline status](https://gitlab.paca.inra.fr/r-ecosystem/cookbooks/r-packages-ci-cd/badges/rcpp/pipeline.svg)](https://gitlab.paca.inra.fr/r-ecosystem/cookbooks/r-packages-ci-cd/commits/rcpp)
# R Packages Continuous Integration and Deployment (CI/CD) pipeline
This project hosts the repository of a Cookbook to manage a R package.
......@@ -47,7 +49,7 @@ There are severals version of this project, depending if the package need compil
* __[.Rbuildignore](.Rbuildignore)__ : regex for files to not include in package
* __[R/](R)__ : R source code directory
* __[man/](man)__ : documentation directory generated by roxygen2
* __[test/](tests)__ : testthat direcotry, instruction for tests
* __[test/](tests)__ : testthat directory, instruction for tests
* __[inst/](inst)__ : directory of files to add in package at install
* __[LICENSE](LICENSE)__ : the license file
......@@ -81,6 +83,8 @@ Four Runners are availables for R Packaging in the shared runners :
* __R Mac__ : a Mac OS High Sierra with the current R and Rtools version.
Check _tags_ in [.gilab-ci.yml](.gitlab-ci.yml) file to enable the runner needed.
R tags is for R version 3.6.2 and R4 tags is for R verison >= 4.0.0 .
> With R version 4.0.0 the Windows toolschain have change and it's no more needed to download binaries of dependendcies as systems libraries.
This runners come with pre-installer R packages, R tools and system-libraries (bin and dev).
See [here](https://gitlab.paca.inrae.fr/r-ecosystem/r-docker-images/blob/master/r-base-biosp/Dockerfile) for more informations.
......@@ -96,7 +100,7 @@ It set up three stages (create, tests and build) and severals jobs by stages.
* create : update Description, NAMESPACE, and man (roxygen2). Create the package.
* tests : Test the package (--as-cran)
* build : Build the package source tar.gz and binary version for MacOS (.tgz) and Windows (.zip)
* build : Build the package source tar.gz and binary version for MacOS (.tgz) and Windows (.zip). Only on a tagged commit.
You need to set up this file for your project.
......