Skip to content

Commit

Permalink
Merge pull request #55 from RobLBaker/master
Browse files Browse the repository at this point in the history
fix website; add github actions build checks
  • Loading branch information
RobLBaker authored Aug 27, 2024
2 parents 2845f90 + eb4dff5 commit 3749206
Show file tree
Hide file tree
Showing 59 changed files with 2,583 additions and 1,960 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
^_pkgdown\.yml$
^docs$
^pkgdown$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
59 changes: 59 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
# fix linux build fails:
# 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
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: R-CMD-check.yaml

permissions: read-all

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: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
PKG_SYSREQS: false

steps:
- uses: actions/checkout@v4

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

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- name: dependencies on Linux
if: runner.os == 'Linux'
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

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
11 changes: 6 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Description: NPSutils is a collection of functions for interacting with NPS Data
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Remotes:
nationalparkservice/EMLeditor,
nationalparkservice/DPchecker
Imports:
EML,
sf,
Expand All @@ -31,8 +34,8 @@ Imports:
crayon,
leaflet,
lifecycle,
EMLeditor,
DPchecker,
EMLeditor (>= 0.1.5),
DPchecker (>= 0.3.4),
here,
jsonlite,
cli
Expand All @@ -42,7 +45,5 @@ Suggests:
rmarkdown,
testthat (>= 3.0.0)
VignetteBuilder: knitr
URL: https://github.com/nationalparkservice/NPSutils
URL: https://nationalparkservice.github.io/NPSutils/
BugReports: https://github.com/nationalparkservice/NPSutils/issues
Roxygen: list(markdown = TRUE)
Config/testthat/edition: 3
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
[![Lifecycle:
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![CodeFactor](https://www.codefactor.io/repository/github/roblbaker/npsutils/badge)](https://www.codefactor.io/repository/github/roblbaker/npsutils)
[![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)
<!-- badges: end -->

# NPS Data Store Utilities - NPSutils

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

These functions are under active development and we apologize for any
that are borked.
Expand Down
4 changes: 0 additions & 4 deletions _pkgdown.yml

This file was deleted.

112 changes: 71 additions & 41 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3749206

Please sign in to comment.