Commit efa7975c authored by Virgile Baudrot's avatar Virgile Baudrot
Browse files

up gitignore gitlab-ci and README

parent dc210095
Pipeline #714 failed with stage
in 12 minutes and 52 seconds
......@@ -17,6 +17,7 @@ vignettes/.Rhistory
# RStudio files
.Rbuildignore
.Rproj.user/
.Rproj.user
fdf.Rproj
# some generated files
......
package:
tags:
- "r-base-biosp"
script:
- "Rscript -e \"roxygen2::roxygenize('fdf', roclets=c('rd', 'collate', 'namespace'))\""
- "R CMD build fdf --resave-data"
- "R CMD check --as-cran $(ls -rt fdf_* |tail -1)"
package-devel:
tags:
- "r-devel-biosp"
script:
- "Rscript -e \"roxygen2::roxygenize('fdf', roclets=c('rd', 'collate', 'namespace'))\""
- "R CMD build fdf --resave-data"
- "R CMD check --as-cran $(ls -rt fdf_* |tail -1)"
package-windows:
tags:
- "win10"
- "R"
- "binaries"
script:
- "Rscript -e \"roxygen2::roxygenize('fdf', roclets=c('rd', 'collate', 'namespace'))\""
- "R CMD build fdf --resave-data"
- "R CMD check --as-cran $(ls -rt fdf_* |tail -1)"
package-mac:
tags:
- "Mac"
- "R"
script:
- "Rscript -e \"roxygen2::roxygenize('fdf', roclets=c('rd', 'collate', 'namespace'))\""
- "R CMD build fdf --resave-data"
- "R CMD check --as-cran $(ls -rt fdf_* |tail -1)"
release-package:
tags:
- "r-base-biosp"
script:
- "Rscript -e \"roxygen2::roxygenize('fdf', roclets=c('rd', 'collate', 'namespace'))\""
- "R CMD build fdf --resave-data"
- "R CMD check --as-cran $(ls -rt fdf_* |tail -1)"
artifacts:
name: "fdf-$CI_COMMIT-REF_NAME-$CI_JOB_NAME"
paths:
- "$(ls -rt fdf_*.tar.gz |tail -1)"
only:
- tags
release-mac:
tags:
- "Mac"
- "R"
script:
- "Rscript -e \"roxygen2::roxygenize('fdf', roclets=c('rd', 'collate', 'namespace'))\""
- "R CMD build fdf --resave-data"
- "R CMD INSTALL --build $(ls -rt fdf_*.tar.gz |tail -1)"
artifacts:
name: "fdf-$CI_COMMIT-REF_NAME-$CI_JOB_NAME"
paths:
- "$(ls -rt fdf_*.tgz | tail -1)"
only:
- tags
release-win:
tags:
- "win10"
- "R"
- "binaries"
script:
- "Rscript -e \"roxygen2::roxygenize('fdf',roclets=c('rd','collate','namespace'))\""
- "R CMD build fdf --resave-data"
- "R CMD INSTALL --build --force-biarch $(ls -rt fdf_*.tar.gz |tail -1)"
artifacts:
name: "fdf-$CI_COMMIT-REF_NAME-$CI_JOB_NAME"
paths:
- "$(ls -rt fdf_*.zip |tail -1)"
only:
- tags
# fdf: a set of tools to work with functional data (column-list) in data frame.
## Build status for development version
[![pipeline status](https://gitlab.paca.inra.fr/biosp/fdf/badges/master/pipeline.svg)](https://gitlab.paca.inra.fr/biosp/fdf/commits/master)
### Clone project
```bash
git clone git@gitlab.paca.inra.fr:biosp/fdf.git
```
### Generate Rd file
```r
roxygen2::roxygenize('fdf', roclets=c('rd', 'namespace'))
```
To generate the reference manual:
```r
R CMD Rd2pdf .
```
or from the parent folder
```r
R CMD Rd2pdf fdf/
```
### Generate package
```bash
R CMD BUILD fdf --resave-data
```
### Install package for Debug
```bash
R CMD INSTALL --no-multiarch --with-keep.source fdf_x.x.tar.gz
```
### Test package
Package unit test is done with `testthat` package. The integration of C++ test unit requires the add of a structure done with `testthat::use_catch()` (see `?use_catch` for details)
### Check package
```bash
R CMD check --as-cran fdf_x.x.x.tar.gz
```
# Author
Virgile Baudrot
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment