Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
^renv$
^renv\.lock$
^.*\.Rproj$
^\.Rproj\.user$
^doc$
^Meta$
^_pkgdown\.yml$
^docs$
^pkgdown$
^\.travis\.yml$
^travis-tool\.sh\.cmd$
^README\.Rmd$
^README\.md$
^codecov\.yml$
^cran-comments\.md$
^\.github$
^\.github\/$
^.github$
.github
^CRAN-RELEASE$
^LICENSE\.md$
1 change: 1 addition & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source("renv/activate.R")
29 changes: 29 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run tests and upload coverage report to Codecov

on:
push:
branches: [dev, main]

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Install R dependencies
run: |
Rscript -e "install.packages(c('covr', 'devtools', 'remotes'))"
Rscript -e "devtools::install_deps(dependencies = TRUE)"

- name: Run tests and upload coverage to Codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
Rscript -e "covr::codecov(token = Sys.getenv('CODECOV_TOKEN'))"
41 changes: 41 additions & 0 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and deploy pkgdown site to GitHub Pages

on:
push:
branches: [main]

jobs:
pkgdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Pandoc
uses: r-lib/actions/setup-pandoc@v2

- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build pkgdown site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy site to gh-pages branch
uses: JamesIves/github-pages-deploy-action@v4
with:
clean: false
branch: gh-pages
folder: docs
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
docs
47 changes: 47 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Package: EFSATools
Type: Package
Title: EFSA ensemble of data collections tools
Version: 1.0.0
Maintainer: Luca Belmonte <luca.belmonte@efsa.europa.eu>
Authors@R:
c(person(given = "Lorenzo",
family = "Copelli",
role = "aut",
comment = c(ORCID = "0009-0002-4305-065X")),
person(given = "Luca",
family = "Belmonte",
role = c("aut", "cre"),
email = "luca.belmonte@efsa.europa.eu",
comment = c(ORCID = "0000-0002-7977-9170")))
Description: The EFSATools package brings together all the functions developed
for EFSA's ad hoc data collections, providing tools for dataset operations as
well as utilities designed to preserve data history.
License: file LICENSE
URL: https://openefsa.github.io/EFSATools
BugReports: https://github.com/openefsa/EFSATools/issues
Depends:
R (>= 4.0.0)
Imports:
checkmate (>= 2.3.1),
dplyr (>= 1.1.4),
glue (>= 1.7.0),
rlang (>= 1.1.4),
stringr (>= 1.5.1),
tidyr (>= 1.3.1)
Suggests:
devtools (>= 2.4.5),
tibble (>= 3.3.0),
covr (>= 3.6.4),
knitr (>= 1.0),
rmarkdown (>= 2.0),
testthat (>= 3.0.0),
usethis (>= 2.2.3),
roxygen2 (>= 7.2.1)
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.3
Config/testthat/edition: 3
VignetteBuilder: knitr
Config/Needs/website: pkgdown
Repository: CRAN
Roxygen: list(markdown = TRUE)
19 changes: 19 additions & 0 deletions EFSATools.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --as-cran
PackageRoxygenize: rd,collate,namespace
Loading
Loading