Skip to content

Commit 7fbfa59

Browse files
authored
Merge pull request #152 from RobLBaker/main
fix unit test data file path
2 parents 63be642 + ce8f6c5 commit 7fbfa59

File tree

114 files changed

+12807
-35786
lines changed

Some content is hidden

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

114 files changed

+12807
-35786
lines changed

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

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
name: R-CMD-check.yaml
10+
11+
permissions: read-all
12+
13+
jobs:
14+
R-CMD-check:
15+
runs-on: ${{ matrix.config.os }}
16+
17+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
config:
23+
- {os: macos-latest, r: 'release'}
24+
- {os: windows-latest, r: 'release'}
25+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
26+
- {os: ubuntu-latest, r: 'release'}
27+
- {os: ubuntu-latest, r: 'oldrel-1'}
28+
29+
env:
30+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
31+
R_KEEP_PKG_SOURCE: yes
32+
PKG_SYSREQS: false
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- uses: r-lib/actions/setup-pandoc@v2
38+
39+
- uses: r-lib/actions/setup-r@v2
40+
with:
41+
r-version: ${{ matrix.config.r }}
42+
http-user-agent: ${{ matrix.config.http-user-agent }}
43+
use-public-rspm: true
44+
45+
- uses: r-lib/actions/setup-r@v2
46+
with:
47+
use-public-rspm: true
48+
49+
- name: dependencies on Linux
50+
if: runner.os == 'Linux'
51+
run: sudo apt-get install -y make pandoc git 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
52+
53+
- uses: r-lib/actions/setup-r-dependencies@v2
54+
with:
55+
extra-packages: any::pkgdown, local::.
56+
needs: website
57+
58+
- uses: r-lib/actions/setup-r-dependencies@v2
59+
with:
60+
extra-packages: any::rcmdcheck
61+
needs: check
62+
63+
- uses: r-lib/actions/check-r-package@v2
64+
with:
65+
upload-snapshots: true
66+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# EMLeditor v0.1.6 (in progress)
2+
## 2024-08-20
3+
* add helper.R file with a test_path function to facilitate unit tests
4+
* update unit test code to run both interactively and during build checks
5+
* add yaml file to conduct github actions: build test
26
## 2024-07-10
37
* add in the new function `set_project()` and attempt to update existing function, `set_protocol()`.
48
* update license from MIT to CC0.

README.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ The goal of EMLeditor is to edit EML-formatted xml files. Specifically,
1616
EMLeditor provides many functions that will be useful to the U.S.
1717
National Park Service when generating metadata for statistical data
1818
packages uploaded to DataStore. NPS affiliation is assumed as default.
19-
However, some of the functions for viewing and editing metadata may be
20-
useful to people outside the NPS.
19+
However, the functions for viewing and editing metadata may be useful to
20+
people outside the NPS.
2121

2222
## Installation and updates
2323

@@ -47,22 +47,29 @@ accompanying documentation includes information on:
4747
package functions
4848
2) Adding in NPS specific and DataStore specific EML elements using the
4949
R/EMLeditor package functions
50-
3) Checking the EML document to make sure it is schema-valid and passes
51-
all the necessary tests for uploading to DataStore
52-
4) Generating a draft data package reference on DataStore and
50+
3) Generating a draft data package reference on DataStore and
5351
incorporating DOIs into the metadata
52+
4) Checking the EML document to make sure it is schema-valid and passes
53+
all the necessary tests for uploading to DataStore (using the
54+
`run_congruence_checks()` function from the
55+
[DPchecker](https://nationalparkservice.github.io/DPchecker/)
56+
package)
5457
5) Uploading a completed data package to DataStore
5558

5659
Please *DO NOT ACTIVATE* the DataStore reference: prior to activation,
5760
data packages need to be reviewed via a yet-to-be-created process.
5861

62+
## Accessing the EML creation script
63+
5964
To access the EML creation script from within EMLeditor, install (or
6065
update) the EMLeditor package and restart R. From within Rstudio, select
6166
the “File” drop-down menu and choose “New File” (the first option). From
6267
within the “New File” menu, select “Rmarkdown…”. In the pop-up menu,
6368
select “From Template on the left hand side. Then choose the
6469
template,”Editable_EML_Creation_Workflow {EMLeditor}” then click “OK”.
6570

71+
## Additional considerations
72+
6673
If you use EMLeditor functions to alter your metadata (e.g. “set” class
6774
functions) they will also silently add the National Park Service as a
6875
publisher (including location, [ROR id](https://ror.org/), etc) to your

0 commit comments

Comments
 (0)