Skip to content

Commit bad8a4c

Browse files
authored
Merge pull request #61 from ropensci/checklist
Checklist
2 parents 493f34b + 24f2db9 commit bad8a4c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1194
-423
lines changed

.Rbuildignore

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
^\.github$
1+
^.*\.Rproj$
22
^\.Rproj\.user$
3-
^\.travis\.yml$
4-
^_pkgdown.yml$
5-
^appveyor\.yml$
3+
^\.github$
64
^codemeta\.json$
75
^.zenodo\.json$
8-
^docs$
96
^man-roxygen$
107
^pkgdown$
11-
^sticker$
12-
^tic\.R$
13-
^.*\.Rproj$
8+
^_pkgdown.yml$
9+
^docs$
1410
^cran-comments\.md$
15-
^CRAN-RELEASE$
11+
# checklist
12+
^checklist.yml$
13+
^codecov.yml$
14+
^LICENSE.md$
1615
^\.httr-oauth$
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on:
2+
push:
3+
branches-ignore:
4+
- master
5+
- ghpages
6+
7+
name: "check package"
8+
9+
jobs:
10+
check-package:
11+
runs-on: ubuntu-latest
12+
name: "check package"
13+
steps:
14+
- uses: inbo/actions/check_pkg@master
15+
with:
16+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
17+
ORCID_TOKEN: ${{ secrets.ORCID_TOKEN }}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
8+
9+
name: R-CMD-check
10+
11+
jobs:
12+
R-CMD-check:
13+
runs-on: ${{ matrix.config.os }}
14+
15+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
config:
21+
- {os: macOS-latest, r: 'devel'}
22+
- {os: macOS-latest, r: 'release'}
23+
- {os: windows-latest, r: 'release'}
24+
- {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
25+
26+
env:
27+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
28+
RSPM: ${{ matrix.config.rspm }}
29+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
30+
ORCID_TOKEN: ${{ secrets.ORCID_TOKEN }}
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
35+
- uses: r-lib/actions/setup-r@master
36+
with:
37+
r-version: ${{ matrix.config.r }}
38+
39+
- uses: r-lib/actions/setup-pandoc@master
40+
41+
- name: Query dependencies
42+
run: |
43+
install.packages('remotes')
44+
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
45+
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
46+
shell: Rscript {0}
47+
48+
- name: Cache R packages
49+
if: runner.os != 'Windows'
50+
uses: actions/cache@v1
51+
with:
52+
path: ${{ env.R_LIBS_USER }}
53+
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
54+
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
55+
56+
- name: Install system dependencies
57+
if: runner.os == 'Linux'
58+
env:
59+
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
60+
run: |
61+
Rscript -e "remotes::install_github('r-hub/sysreqs')"
62+
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
63+
sudo -s eval "$sysreqs"
64+
- name: Install dependencies
65+
run: |
66+
remotes::install_deps(dependencies = TRUE)
67+
remotes::install_cran("rcmdcheck")
68+
shell: Rscript {0}
69+
70+
- name: Session info
71+
run: |
72+
options(width = 100)
73+
pkgs <- installed.packages()[, "Package"]
74+
sessioninfo::session_info(pkgs, include_base = TRUE)
75+
shell: Rscript {0}
76+
77+
- name: Check
78+
env:
79+
_R_CHECK_CRAN_INCOMING_: false
80+
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
81+
shell: Rscript {0}
82+
83+
- name: Show testthat output
84+
if: always()
85+
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
86+
shell: bash
87+
88+
- name: Upload check results
89+
if: failure()
90+
uses: actions/upload-artifact@master
91+
with:
92+
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
93+
path: check
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
schedule:
6+
- cron: '6 0 * * 1'
7+
8+
name: "check package on master"
9+
10+
jobs:
11+
check-package:
12+
runs-on: ubuntu-latest
13+
name: "check package"
14+
steps:
15+
- uses: inbo/actions/check_pkg@master
16+
with:
17+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
18+
ORCID_TOKEN: ${{ secrets.ORCID_TOKEN }}
19+
token: ${{ secrets.pat }}

.travis.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

DESCRIPTION

Lines changed: 48 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,61 @@
11
Package: git2rdata
22
Title: Store and Retrieve Data.frames in a Git Repository
3-
Version: 0.2.1
4-
Authors@R: c(
5-
person(
6-
"Thierry", "Onkelinx", role = c("aut", "cre"),
7-
email = "[email protected]",
8-
comment = c(ORCID = "0000-0001-8804-4216")),
9-
person(
10-
"Floris", "Vanderhaeghe", role = "ctb",
11-
email = "[email protected]",
12-
comment = c(ORCID = "0000-0002-6378-6229")),
13-
person(
14-
"Peter", "Desmet", role = "ctb",
15-
email = "[email protected]",
16-
comment = c(ORCID = "0000-0002-8442-8025")),
17-
person(
18-
"Els", "Lommelen", role = "ctb",
19-
email = "[email protected]",
20-
comment = c(ORCID = "0000-0002-3481-5684")),
21-
person(
22-
"Research Institute for Nature and Forest",
23-
role = c("cph", "fnd"), email = "[email protected]"))
24-
Description: Make versioning of data.frame easy and efficient using git repositories.
25-
Depends: R (>= 3.5.0)
3+
Version: 0.2.2
4+
Authors@R:
5+
c(person(given = "Thierry",
6+
family = "Onkelinx",
7+
role = c("aut", "cre"),
8+
email = "[email protected]",
9+
comment = c(ORCID = "0000-0001-8804-4216")),
10+
person(given = "Floris",
11+
family = "Vanderhaeghe",
12+
role = "ctb",
13+
email = "[email protected]",
14+
comment = c(ORCID = "0000-0002-6378-6229")),
15+
person(given = "Peter",
16+
family = "Desmet",
17+
role = "ctb",
18+
email = "[email protected]",
19+
comment = c(ORCID = "0000-0002-8442-8025")),
20+
person(given = "Els",
21+
family = "Lommelen",
22+
role = "ctb",
23+
email = "[email protected]",
24+
comment = c(ORCID = "0000-0002-3481-5684")),
25+
person(given = "Research Institute for Nature and Forest",
26+
role = c("cph", "fnd"),
27+
email = "[email protected]"))
28+
Description: Make versioning of data.frame easy and efficient using git
29+
repositories.
30+
License: GPL-3
31+
URL: https://github.com/ropensci/git2rdata,
32+
https://doi.org/10.5281/zenodo.1485309
33+
BugReports: https://github.com/ropensci/git2rdata/issues
34+
Depends:
35+
R (>= 3.5.0)
2636
Imports:
27-
assertthat,
28-
git2r (>= 0.23.0),
29-
methods,
30-
yaml
37+
assertthat,
38+
git2r (>= 0.23.0),
39+
methods,
40+
yaml
3141
Suggests:
32-
spelling,
33-
ggplot2,
34-
knitr,
35-
microbenchmark,
36-
rmarkdown,
37-
testthat
38-
License: GPL-3
42+
ggplot2,
43+
knitr,
44+
microbenchmark,
45+
rmarkdown,
46+
spelling,
47+
testthat
48+
VignetteBuilder:
49+
knitr
3950
Encoding: UTF-8
51+
Language: en-GB
4052
LazyData: true
4153
Roxygen: list(markdown = TRUE)
42-
RoxygenNote: 6.1.1
43-
URL: https://github.com/ropensci/git2rdata, https://doi.org/10.5281/zenodo.1485309
44-
BugReports: https://github.com/ropensci/git2rdata/issues
54+
RoxygenNote: 7.1.1
4555
Collate:
4656
'clean_data_path.R'
4757
'datahash.R'
48-
'git2rdata-package.R'
58+
'git2rdata_package.R'
4959
'write_vc.R'
5060
'is_git2rdata.R'
5161
'is_git2rmeta.R'
@@ -58,5 +68,3 @@ Collate:
5868
'relabel.R'
5969
'upgrade_data.R'
6070
'utils.R'
61-
VignetteBuilder: knitr
62-
Language: en-GB

0 commit comments

Comments
 (0)