Skip to content

Commit 3749206

Browse files
authored
Merge pull request #55 from RobLBaker/master
fix website; add github actions build checks
2 parents 2845f90 + eb4dff5 commit 3749206

Some content is hidden

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

59 files changed

+2583
-1960
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
^_pkgdown\.yml$
55
^docs$
66
^pkgdown$
7+
^\.github$

.github/.gitignore

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

.github/workflows/R-CMD-check.yaml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
# fix linux build fails:
4+
# https://forum.posit.co/t/libraptor2-dev-depends-libcurl4-gnutls-dev-but-it-is-not-installable-in-r-lib-actions-setup-r-dependencies-v2/181572/4
5+
on:
6+
push:
7+
branches: [main, master]
8+
pull_request:
9+
branches: [main, master]
10+
11+
name: R-CMD-check.yaml
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+
31+
env:
32+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
33+
R_KEEP_PKG_SOURCE: yes
34+
PKG_SYSREQS: false
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+
- name: dependencies on Linux
48+
if: runner.os == 'Linux'
49+
run: sudo apt-get install -y make pandoc git libjq-dev libssl-dev libgdal-dev gdal-bin libgeos-dev libproj-dev libsqlite3-dev libicu-dev libudunits2-dev librdf0-dev libxml2-dev libfreetype6-dev libjpeg-dev libpng-dev libtiff-dev libfontconfig1-dev libfribidi-dev libharfbuzz-dev libcurl4-gnutls-dev
50+
51+
- uses: r-lib/actions/setup-r-dependencies@v2
52+
with:
53+
extra-packages: any::rcmdcheck
54+
needs: check
55+
56+
- uses: r-lib/actions/check-r-package@v2
57+
with:
58+
upload-snapshots: true
59+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

DESCRIPTION

+6-5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ Description: NPSutils is a collection of functions for interacting with NPS Data
1717
License: MIT + file LICENSE
1818
Encoding: UTF-8
1919
LazyData: true
20+
Remotes:
21+
nationalparkservice/EMLeditor,
22+
nationalparkservice/DPchecker
2023
Imports:
2124
EML,
2225
sf,
@@ -31,8 +34,8 @@ Imports:
3134
crayon,
3235
leaflet,
3336
lifecycle,
34-
EMLeditor,
35-
DPchecker,
37+
EMLeditor (>= 0.1.5),
38+
DPchecker (>= 0.3.4),
3639
here,
3740
jsonlite,
3841
cli
@@ -42,7 +45,5 @@ Suggests:
4245
rmarkdown,
4346
testthat (>= 3.0.0)
4447
VignetteBuilder: knitr
45-
URL: https://github.com/nationalparkservice/NPSutils
48+
URL: https://nationalparkservice.github.io/NPSutils/
4649
BugReports: https://github.com/nationalparkservice/NPSutils/issues
47-
Roxygen: list(markdown = TRUE)
48-
Config/testthat/edition: 3

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
[![Lifecycle:
66
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
77
[![CodeFactor](https://www.codefactor.io/repository/github/roblbaker/npsutils/badge)](https://www.codefactor.io/repository/github/roblbaker/npsutils)
8+
[![R-CMD-check](https://github.com/RobLBaker/NPSutils/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/RobLBaker/NPSutils/actions/workflows/R-CMD-check.yaml)
89
<!-- badges: end -->
910

1011
# NPS Data Store Utilities - NPSutils
1112

1213
This package is a collection of functions to acquire metadata and data
13-
from the [National Park Service Data
14-
Store](https://irma.nps.gov/DataStore/). Please request
15-
enhancements and bug fixes through
16-
[Issues](https://github.com/nationalparkservice/NPSutils/issues).
14+
from the [National Park Service DataStore](https://irma.nps.gov/DataStore/).
15+
Please request enhancements and bug fixes through [Issues](https://github.com/nationalparkservice/NPSutils/issues).
1716

1817
These functions are under active development and we apologize for any
1918
that are borked.

_pkgdown.yml

-4
This file was deleted.

docs/404.html

+71-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)