From 0c962787eae6a5ecb471fcf6c4b4dab374c33912 Mon Sep 17 00:00:00 2001 From: Rob Baker <robert_baker@nps.gov> Date: Wed, 15 Jan 2025 15:41:57 -0700 Subject: [PATCH 1/2] update badges --- README.Rmd | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.Rmd b/README.Rmd index a43e93d..3083d95 100644 --- a/README.Rmd +++ b/README.Rmd @@ -4,7 +4,7 @@ output: github_document <!-- README.md is generated from README.Rmd. Please edit that file --> - <!-- badges: start --> +<!-- badges: start --> [](https://github.com/nationalparkservice/NPSdataverse/actions/workflows/R-CMD-check.yaml) <!-- badges: end --> diff --git a/README.md b/README.md index 57731ad..39658ee 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ <!-- README.md is generated from README.Rmd. Please edit that file --> - <!-- badges: start --> + [](https://github.com/nationalparkservice/NPSdataverse/actions/workflows/R-CMD-check.yaml) <!-- badges: end --> From f9c947c0f82b6daae1e315b0c752cd2b6a4a1b30 Mon Sep 17 00:00:00 2001 From: Rob Baker <robert_baker@nps.gov> Date: Wed, 15 Jan 2025 15:42:17 -0700 Subject: [PATCH 2/2] updated via pkgdown::build_site_github_pages --- docs/authors.html | 4 ++-- docs/paper.html | 8 ++++---- docs/pkgdown.yml | 4 ++-- docs/reference/NPSdataverse_packages.html | 15 +++------------ 4 files changed, 11 insertions(+), 20 deletions(-) diff --git a/docs/authors.html b/docs/authors.html index d446155..e4e8f99 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -72,14 +72,14 @@ <h1 id="citation">Citation</h1> </div> - <p>Baker R, Patterson J, DeVivo J (2024). + <p>Baker R, Patterson J, DeVivo J (2025). <em>NPSdataverse: Tools and Packages for Data and Metadata Manipulation</em>. R package version 0.1.0, <a href="https://github.com/nationalparkservice/NPSdataverse" class="external-link">https://github.com/nationalparkservice/NPSdataverse</a>. </p> <pre>@Manual{, title = {NPSdataverse: Tools and Packages for Data and Metadata Manipulation}, author = {Robert Baker and Judd Patterson and Joe DeVivo}, - year = {2024}, + year = {2025}, note = {R package version 0.1.0}, url = {https://github.com/nationalparkservice/NPSdataverse}, }</pre> diff --git a/docs/paper.html b/docs/paper.html index a30d560..f6c3cb8 100644 --- a/docs/paper.html +++ b/docs/paper.html @@ -103,7 +103,7 @@ <h1 id="emleditor-r-package">EMLeditor R package<a class="anchor" aria-label="an <span> ror_id <span class="op">=</span> <span class="st">""</span>,</span> <span> for_or_by_NPS <span class="op">=</span> <span class="cn">FALSE</span>,</span> <span> NPS <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span></code></pre> -<p>By default, <code>EMLeditor</code> functions provide verbose user feedback and may require user input to confirm some operations. These checks are intended to help guide users, prevent inadvertent mistakes, and limit unnecessary API calls. However, requiring user input can hamper highly scripted approaches and limits reproducability. Therefore, all <code>EMLeditor</code> functions can be set to circumvent these requirements using the parameter <code>force = FALSE</code>.</p> +<p>By default, <code>EMLeditor</code> functions provide verbose user feedback and may require user input to confirm some operations. These checks are intended to help guide users, prevent inadvertent mistakes, and limit unnecessary API calls. However, requiring user input can hamper highly scripted approaches and limits reproducibility. Therefore, all <code>EMLeditor</code> functions can be set to circumvent these requirements using the parameter <code>force = TRUE</code>.</p> <pre><code><span><span class="co">#example setting the abstract while suppressing user feedback and input:</span></span> <span></span> <span><span class="va">new_metadata</span> <span class="op"><-</span> <span class="fu">set_abstract</span><span class="op">(</span>eml_object <span class="op">=</span> <span class="va">old_metadata</span>,</span> @@ -117,19 +117,19 @@ <h1 id="dpchecker-r-package">DPchecker R Package<a class="anchor" aria-label="an <li>Metadata elements necessary for DataStore automated extraction are present (creators have valid surnames, publication date is present and in the correct ISO-8601 format, keywords are present, abstract and methods are present and well formatted, etc).</li> <li>Recommended EML elements are present including ORCiDs and a notes section.</li> <li>Metadata and data are in congruence including all files listed in metadata refer to data files, the columns in the metadata match the columns in the data files, missing fields in data files are properly documented in metadata, and dates in data files fall within the date ranges given in the metadata, etc.</li> -<li>Data and metadata are in compliance with (a subset of) federal regulations including tests for information that should not be released to the public such as non-.gov emails and GPS coordinates for restricted data packages.</li> +<li>Data and metadata are in compliance with (a subset of) federal regulations including tests for information that should not be released to the public such as non-.gov emails.</li> </ol><p>For each test, the data package may fail with an error, fail with a warning, or pass. When possible, warnings and error messages indicate the appropriate <code>EMLeditor</code> function to address the problem. <code>DPchecker</code> will often throw a warning even if an EML element exists and is properly formatted but could by improved to increase the FAIR characteristics of the metadata. For instance, <code>DPchecker</code> will throw a warning if an abstract is less than 20 words long as it is unlikely the creator is able to meaningfully describe the data collection and processing in less than 20 words.</p> </div> <div class="section level1"> <h1 id="npsutils-r-package">NPSutils R Package<a class="anchor" aria-label="anchor" href="#npsutils-r-package"></a></h1> -<p>The <code>[NPSutils](https://nationalparkservice.github.io/NPSutils/)</code> (“NPS utilities”) package serves primarily as a way to access data [@Baker_NPSutils2024]. <code>NPSutils</code> provides avenues for directly downloading data from DataStore using R. <code>NPSutils</code> can also import data downloaded from any repository into R and take advantage of rich EML metadata to call column types. <code>NPSutils</code> provides some basic meta-analysis capability, assuming certain interoperabilty standards are met (such as consistently naming columns with Darwin Core parameters or other domain-accepted parameter names). <code>NPSutils</code> can also be used to import data and metadata into common data visualization tools.</p> +<p>The <code>[NPSutils](https://nationalparkservice.github.io/NPSutils/)</code> (“NPS utilities”) package serves primarily as a way to access data [@Baker_NPSutils2024]. <code>NPSutils</code> provides avenues for directly downloading data from DataStore using R. <code>NPSutils</code> can also import data downloaded from any repository into R and take advantage of rich EML metadata to call column types. <code>NPSutils</code> provides some basic meta-analysis capability. <code>NPSutils</code> can also be used to import data and metadata into common data visualization tools.</p> <p>Example of how to download and access data:</p> <pre><code><span><span class="co"># download a data package from datastore:</span></span> <span><span class="co"># the data package will be downloaded to ./data/2300498</span></span> <span></span> <span><span class="fu">NPSutils</span><span class="fu">::</span><span class="fu"><a href="https://nationalparkservice.github.io/NPSutils/reference/get_data_packages.html" class="external-link">get_data_package</a></span><span class="op">(</span><span class="fl">2300498</span><span class="op">)</span></span> <span></span> -<span><span class="co"># load the data package into R:</span></span> +<span><span class="co"># load the data package into R, and use the metadata to call column types</span></span> <span><span class="co"># returns a list of tibbles; each tibble corresponds to a single data file</span></span> <span></span> <span><span class="va">mojn</span> <span class="op"><-</span> <span class="fu">NPSutils</span><span class="fu">::</span><span class="fu"><a href="https://nationalparkservice.github.io/NPSutils/reference/load_data_packages.html" class="external-link">load_data_package</a></span><span class="op">(</span><span class="fl">2300498</span>, assign_attributes <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></code></pre> diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 96dcace..a9733ee 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,6 +1,6 @@ -pandoc: 3.1.11 +pandoc: '3.2' pkgdown: 2.1.0 pkgdown_sha: ~ articles: NPSdataverse: NPSdataverse.html -last_built: 2024-10-28T22:07Z +last_built: 2025-01-15T22:40Z diff --git a/docs/reference/NPSdataverse_packages.html b/docs/reference/NPSdataverse_packages.html index e4ac32c..6e1b1b0 100644 --- a/docs/reference/NPSdataverse_packages.html +++ b/docs/reference/NPSdataverse_packages.html @@ -63,18 +63,9 @@ <h1>List all packages imported by NPSdataverse</h1> <div id="ref-examples"> <h2>Examples</h2> <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">NPSdataverse_packages</span><span class="op">(</span><span class="op">)</span></span></span> -<span class="r-out co"><span class="r-pr">#></span> [1] "cli" </span> -<span class="r-out co"><span class="r-pr">#></span> [2] "crayon" </span> -<span class="r-out co"><span class="r-pr">#></span> [3] "DPchecker" </span> -<span class="r-out co"><span class="r-pr">#></span> [4] "EML" </span> -<span class="r-out co"><span class="r-pr">#></span> [5] "EMLassemblyline"</span> -<span class="r-out co"><span class="r-pr">#></span> [6] "EMLeditor" </span> -<span class="r-out co"><span class="r-pr">#></span> [7] "NPSutils" </span> -<span class="r-out co"><span class="r-pr">#></span> [8] "QCkit" </span> -<span class="r-out co"><span class="r-pr">#></span> [9] "rstudioapi" </span> -<span class="r-out co"><span class="r-pr">#></span> [10] "utils" </span> -<span class="r-out co"><span class="r-pr">#></span> [11] "remotes" </span> -<span class="r-out co"><span class="r-pr">#></span> [12] "lifecycle" </span> +<span class="r-out co"><span class="r-pr">#></span> [1] "cli" "crayon" "DPchecker" "EML" </span> +<span class="r-out co"><span class="r-pr">#></span> [5] "EMLassemblyline" "EMLeditor" "NPSutils" "QCkit" </span> +<span class="r-out co"><span class="r-pr">#></span> [9] "rstudioapi" "utils" "remotes" "lifecycle" </span> </code></pre></div> </div> </div>