Skip to content

Commit e05f10d

Browse files
authored
Merge pull request #57 from inbo/live-test
Add R-CMD-CHECK: no tests, no examples + changes to readme
2 parents b9d698d + d0246e4 commit e05f10d

File tree

8 files changed

+75
-48
lines changed

8 files changed

+75
-48
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
^LICENSE\.md$
44
^README\.Rmd$
55
[.]js$
6+
^\.github$

.github/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-CHECK-lite.yml

-40
This file was deleted.
+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
4+
# Since Github Actions doesn't have access to the database, tests and examples are disabled.
5+
on:
6+
push:
7+
branches: [main, master]
8+
pull_request:
9+
branches: [main, master]
10+
11+
name: R-CMD-check-lite.yaml NO TESTS NO EXAMPLES
12+
13+
permissions: read-all
14+
15+
jobs:
16+
R-CMD-check:
17+
runs-on: ${{ matrix.config.os }}
18+
19+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
config:
25+
- {os: macos-latest, r: 'release'}
26+
- {os: windows-latest, r: 'release'}
27+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
28+
- {os: ubuntu-latest, r: 'release'}
29+
- {os: ubuntu-latest, r: 'oldrel-1'}
30+
- {os: ubuntu-latest, r: '3.6.3'}
31+
32+
env:
33+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
34+
R_KEEP_PKG_SOURCE: yes
35+
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- uses: r-lib/actions/setup-pandoc@v2
40+
41+
- uses: r-lib/actions/setup-r@v2
42+
with:
43+
r-version: ${{ matrix.config.r }}
44+
http-user-agent: ${{ matrix.config.http-user-agent }}
45+
use-public-rspm: true
46+
47+
- uses: r-lib/actions/setup-r-dependencies@v2
48+
with:
49+
extra-packages: any::rcmdcheck
50+
needs: check
51+
52+
- uses: r-lib/actions/check-r-package@v2
53+
with:
54+
upload-snapshots: false
55+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
56+
args: 'c("--no-manual", "--no-tests", "--no-examples")'
57+
error-on: '"warning"'

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: etnservice
22
Title: Serve Data from the European Tracking Network
3-
Version: 0.1.0
3+
Version: 0.1.1
44
Authors@R: c(
55
person("Pieter", "Huybrechts", , "pieter.huybrechts@inbo.be", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0002-6658-6062")),

NEWS.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# etnservice v0.1.0
1+
# etnservice 0.1.1
2+
- Added badges to the readme
3+
- Improvements to CI, note that tests and examples are not checked on github. These still need to be checked on a machine that has access to the ETN database.
24

5+
# etnservice v0.1.0
36
- This is the first version of etnservice used in the beta of etn v2.3.0.
47
- This version is still lagging behind it's contemporary version of etn v2.2.1, which means that database queries made via etnservice, or via the OpenCPU API are not guaranteed to be identical as the results of the same queries made via the etn R package.
5-

README.Rmd

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ knitr::opts_chunk$set(
1717

1818
<!-- badges: start -->
1919
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
20+
[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
21+
[![R-CMD-check](https://github.com/inbo/etnservice/actions/workflows/R-CMD-check-lite.yaml/badge.svg)](https://github.com/inbo/etnservice/actions/workflows/R-CMD-check-lite.yaml)
2022
<!-- badges: end -->
2123

2224
The goal of etnservice is to to serve data from the European Tracking Network as a restful API.

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
[![Lifecycle:
99
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
10+
[![Project Status: WIP – Initial development is in progress, but there
11+
has not yet been a stable, usable release suitable for the
12+
public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
13+
[![R-CMD-check](https://github.com/inbo/etnservice/actions/workflows/R-CMD-check-lite.yaml/badge.svg)](https://github.com/inbo/etnservice/actions/workflows/R-CMD-check-lite.yaml)
1014
<!-- badges: end -->
1115

1216
The goal of etnservice is to to serve data from the European Tracking
@@ -21,10 +25,10 @@ LifeWatch. ETN data is subject to the [ETN data
2125
policy](http://www.lifewatch.be/etn/assets/docs/ETN-DataPolicy.pdf) and
2226
can be:
2327

24-
- restricted: under moratorium and only accessible to logged-in data
25-
owners/collaborators
26-
- unrestricted: publicly accessible without login and routinely
27-
published to international biodiversity facilities
28+
- restricted: under moratorium and only accessible to logged-in data
29+
owners/collaborators
30+
- unrestricted: publicly accessible without login and routinely
31+
published to international biodiversity facilities
2832

2933
The ETN infrastructure currently requires the package to be run within
3034
the [LifeWatch.be RStudio server](http://rstudio.lifewatch.be/), which
@@ -73,7 +77,7 @@ response %>%
7377
jsonlite::fromJSON(simplifyVector = TRUE)
7478
```
7579

76-
However, a branch of the [etn package](https://github.com/inbo/etn) is
80+
However, a fork of the [etn package](https://github.com/inbo/etn) is
7781
currently in development that will allow you to do this using built in
7882
functions.
7983

0 commit comments

Comments
 (0)