Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checklist #61

Merged
merged 13 commits into from
Aug 19, 2020
Merged
17 changes: 8 additions & 9 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
^\.github$
^.*\.Rproj$
^\.Rproj\.user$
^\.travis\.yml$
^_pkgdown.yml$
^appveyor\.yml$
^\.github$
^codemeta\.json$
^.zenodo\.json$
^docs$
^man-roxygen$
^pkgdown$
^sticker$
^tic\.R$
^.*\.Rproj$
^_pkgdown.yml$
^docs$
^cran-comments\.md$
^CRAN-RELEASE$
# checklist
^checklist.yml$
^codecov.yml$
^LICENSE.md$
^\.httr-oauth$
17 changes: 17 additions & 0 deletions .github/workflows/check_on_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
push:
branches-ignore:
- master
- ghpages

name: "check package"

jobs:
check-package:
runs-on: ubuntu-latest
name: "check package"
steps:
- uses: inbo/actions/check_pkg@master
with:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
ORCID_TOKEN: ${{ secrets.ORCID_TOKEN }}
93 changes: 93 additions & 0 deletions .github/workflows/check_on_different_r_os.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
on:
push:
branches:
- master
pull_request:
branches:
- master

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'devel'}
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
ORCID_TOKEN: ${{ secrets.ORCID_TOKEN }}

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@master
with:
r-version: ${{ matrix.config.r }}

- uses: r-lib/actions/setup-pandoc@master

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: |
Rscript -e "remotes::install_github('r-hub/sysreqs')"
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
sudo -s eval "$sysreqs"
- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}

- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}

- name: Check
env:
_R_CHECK_CRAN_INCOMING_: false
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
shell: Rscript {0}

- name: Show testthat output
if: always()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload check results
if: failure()
uses: actions/upload-artifact@master
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
19 changes: 19 additions & 0 deletions .github/workflows/check_on_master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches:
- master
schedule:
- cron: '6 0 * * 1'

name: "check package on master"

jobs:
check-package:
runs-on: ubuntu-latest
name: "check package"
steps:
- uses: inbo/actions/check_pkg@master
with:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
ORCID_TOKEN: ${{ secrets.ORCID_TOKEN }}
token: ${{ secrets.pat }}
71 changes: 0 additions & 71 deletions .travis.yml

This file was deleted.

88 changes: 48 additions & 40 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,51 +1,61 @@
Package: git2rdata
Title: Store and Retrieve Data.frames in a Git Repository
Version: 0.2.1
Authors@R: c(
person(
"Thierry", "Onkelinx", role = c("aut", "cre"),
email = "[email protected]",
comment = c(ORCID = "0000-0001-8804-4216")),
person(
"Floris", "Vanderhaeghe", role = "ctb",
email = "[email protected]",
comment = c(ORCID = "0000-0002-6378-6229")),
person(
"Peter", "Desmet", role = "ctb",
email = "[email protected]",
comment = c(ORCID = "0000-0002-8442-8025")),
person(
"Els", "Lommelen", role = "ctb",
email = "[email protected]",
comment = c(ORCID = "0000-0002-3481-5684")),
person(
"Research Institute for Nature and Forest",
role = c("cph", "fnd"), email = "[email protected]"))
Description: Make versioning of data.frame easy and efficient using git repositories.
Depends: R (>= 3.5.0)
Version: 0.2.2
Authors@R:
c(person(given = "Thierry",
family = "Onkelinx",
role = c("aut", "cre"),
email = "[email protected]",
comment = c(ORCID = "0000-0001-8804-4216")),
person(given = "Floris",
family = "Vanderhaeghe",
role = "ctb",
email = "[email protected]",
comment = c(ORCID = "0000-0002-6378-6229")),
person(given = "Peter",
family = "Desmet",
role = "ctb",
email = "[email protected]",
comment = c(ORCID = "0000-0002-8442-8025")),
person(given = "Els",
family = "Lommelen",
role = "ctb",
email = "[email protected]",
comment = c(ORCID = "0000-0002-3481-5684")),
person(given = "Research Institute for Nature and Forest",
role = c("cph", "fnd"),
email = "[email protected]"))
Description: Make versioning of data.frame easy and efficient using git
repositories.
License: GPL-3
URL: https://github.com/ropensci/git2rdata,
https://doi.org/10.5281/zenodo.1485309
BugReports: https://github.com/ropensci/git2rdata/issues
Depends:
R (>= 3.5.0)
Imports:
assertthat,
git2r (>= 0.23.0),
methods,
yaml
assertthat,
git2r (>= 0.23.0),
methods,
yaml
Suggests:
spelling,
ggplot2,
knitr,
microbenchmark,
rmarkdown,
testthat
License: GPL-3
ggplot2,
knitr,
microbenchmark,
rmarkdown,
spelling,
testthat
VignetteBuilder:
knitr
Encoding: UTF-8
Language: en-GB
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 6.1.1
URL: https://github.com/ropensci/git2rdata, https://doi.org/10.5281/zenodo.1485309
BugReports: https://github.com/ropensci/git2rdata/issues
RoxygenNote: 7.1.1
Collate:
'clean_data_path.R'
'datahash.R'
'git2rdata-package.R'
'git2rdata_package.R'
'write_vc.R'
'is_git2rdata.R'
'is_git2rmeta.R'
Expand All @@ -58,5 +68,3 @@ Collate:
'relabel.R'
'upgrade_data.R'
'utils.R'
VignetteBuilder: knitr
Language: en-GB
Loading