Skip to content
Snippets Groups Projects
Commit a966619d authored by Fisher, Jason C.'s avatar Fisher, Jason C.
Browse files

Merge branch 'develop' into 'develop'

tidy readme

See merge request !1
parents fc8b2347 bf958023
No related branches found
No related tags found
2 merge requests!2Merge in develop branch and bump version,!1tidy readme
Pipeline #404461 passed
...@@ -53,7 +53,7 @@ clean: ...@@ -53,7 +53,7 @@ clean:
rm -f -r $(PKGNAME).Rcheck/ rm -f -r $(PKGNAME).Rcheck/
.PHONY: clean .PHONY: clean
readme: install readme:
R -q -e 'rmarkdown::render('\''README.Rmd'\'')' R -q -e 'rmarkdown::render('\''README.Rmd'\'')'
.PHONY: readme .PHONY: readme
...@@ -61,5 +61,5 @@ website: install ...@@ -61,5 +61,5 @@ website: install
R -q -e 'pkgdown::build_site(examples = FALSE)' R -q -e 'pkgdown::build_site(examples = FALSE)'
.PHONY: website .PHONY: website
everything: datasets readme check website lockfile clean everything: datasets readme install check website lockfile clean
.PHONY: everything .PHONY: everything
...@@ -129,7 +129,7 @@ make_map <- function(maps, ...@@ -129,7 +129,7 @@ make_map <- function(maps,
} }
} }
checkmate::assert_character(maps, any.missing = FALSE, min.len = 1) checkmate::assert_character(maps, any.missing = FALSE, min.len = 1)
maps <- match.arg(maps, names(basemaps), several.ok = TRUE) maps <- match.arg(maps, choices = names(basemaps), several.ok = TRUE)
basemaps <- basemaps[maps] basemaps <- basemaps[maps]
# subset TNM base maps # subset TNM base maps
......
...@@ -78,7 +78,7 @@ Jason C. Fisher (<jfisher@usgs.gov>) ...@@ -78,7 +78,7 @@ Jason C. Fisher (<jfisher@usgs.gov>)
To cite **webmap** in publications, please use: To cite **webmap** in publications, please use:
```{r "citation", echo=FALSE, results="asis"} ```{r "citation", echo=FALSE, results="asis"}
utils::citation(package = "webmap") |> print(style = "textVersion") utils::readCitationFile("inst/CITATION") |> print(style = "textVersion")
``` ```
## Contributing ## Contributing
...@@ -104,7 +104,7 @@ The Idaho National Laboratory Project Office of the USGS supports the developmen ...@@ -104,7 +104,7 @@ The Idaho National Laboratory Project Office of the USGS supports the developmen
Additional metadata about this publication, not found in other parts of the page is in this table. Additional metadata about this publication, not found in other parts of the page is in this table.
```{r "details", echo=FALSE, results="asis"} ```{r "details", echo=FALSE, results="asis"}
cite <- utils::citation(package = "webmap") cite <- utils::readCitationFile("inst/CITATION")
x <- c( x <- c(
"Publication type" = "Formal R language package", "Publication type" = "Formal R language package",
"DOI" = cite[[1]]$doi, "DOI" = cite[[1]]$doi,
......
webmap <img src="man/figures/logo.svg" alt="webmap" align="right" width="152px" /> # webmap <img src="man/figures/logo.svg" alt="webmap" align="right" width="152px" />
==================================================================================
[![cran-version-image](https://www.r-pkg.org/badges/version/webmap)](https://CRAN.R-project.org/package=webmap) [![cran-version-image](https://www.r-pkg.org/badges/version/webmap)](https://CRAN.R-project.org/package=webmap)
[![pipeline-status-image](https://code.usgs.gov/inl/webmap/badges/main/pipeline.svg)](https://code.usgs.gov/inl/webmap/-/commits/main) [![pipeline-status-image](https://code.usgs.gov/inl/webmap/badges/main/pipeline.svg)](https://code.usgs.gov/inl/webmap/-/commits/main)
[![coverage-report-image](https://code.usgs.gov/inl/webmap/badges/main/coverage.svg)](https://code.usgs.gov/inl/webmap/-/commits/main) [![coverage-report-image](https://code.usgs.gov/inl/webmap/badges/main/coverage.svg)](https://code.usgs.gov/inl/webmap/-/commits/main)
Description ## Description
-----------
The **webmap** package in [R](https://www.r-project.org/) is a tool that The **webmap** package in [R](https://www.r-project.org/) is a tool that
leverages the JavaScript [Leaflet](https://leafletjs.com/) library to leverages the JavaScript [Leaflet](https://leafletjs.com/) library to
...@@ -24,8 +22,7 @@ with the [Leaflet for R](https://rstudio.github.io/leaflet/) package. ...@@ -24,8 +22,7 @@ with the [Leaflet for R](https://rstudio.github.io/leaflet/) package.
Furthermore, it comes equipped with a variety of utility functions that Furthermore, it comes equipped with a variety of utility functions that
enable you to enhance your web map with additional features. enable you to enhance your web map with additional features.
Installation ## Installation
------------
To install the current release of the package from To install the current release of the package from
[CRAN](https://CRAN.R-project.org/package=webmap) you can use the [CRAN](https://CRAN.R-project.org/package=webmap) you can use the
...@@ -59,8 +56,7 @@ After installing the package, you can use it in various contexts, ...@@ -59,8 +56,7 @@ After installing the package, you can use it in various contexts,
including the R console, [R Markdown](https://rmarkdown.rstudio.com/) including the R console, [R Markdown](https://rmarkdown.rstudio.com/)
documents, and [Shiny](https://shiny.posit.co/) applications. documents, and [Shiny](https://shiny.posit.co/) applications.
Basic Usage ## Basic Usage
-----------
To create the default web map and display it (the screenshot below To create the default web map and display it (the screenshot below
showns the default web map), you can run the following commands: showns the default web map), you can run the following commands:
...@@ -82,8 +78,7 @@ these documents, run: ...@@ -82,8 +78,7 @@ these documents, run:
help(package = "webmap") help(package = "webmap")
``` ```
Authors ## Authors
-------
- Jason C. Fisher (ORCID iD - Jason C. Fisher (ORCID iD
[0000-0001-9032-8912](https://orcid.org/0000-0001-9032-8912)) [0000-0001-9032-8912](https://orcid.org/0000-0001-9032-8912))
...@@ -92,24 +87,19 @@ Authors ...@@ -92,24 +87,19 @@ Authors
- John Firebaugh ([Leaflet.fullscreen - John Firebaugh ([Leaflet.fullscreen
library](https://github.com/Leaflet/Leaflet.fullscreen)) library](https://github.com/Leaflet/Leaflet.fullscreen))
Point of Contact ## Point of Contact
----------------
Jason C. Fisher Jason C. Fisher (<jfisher@usgs.gov>)
(<a href="mailto:jfisher@usgs.gov" class="email">jfisher@usgs.gov</a>)
Suggested Citation ## Suggested Citation
------------------
To cite **webmap** in publications, please use: To cite **webmap** in publications, please use:
Fisher, J.C., 2023, webmap—Interactive web maps using The National Map Fisher, J.C., 2023, webmap—Interactive web maps using The National Map
(TNM) services: U.S. Geological Survey software release, R package, (TNM) services: U.S. Geological Survey software release, R package,
Reston, Va., Reston, Va., <https://doi.org/10.5066/P9CPB1WD>.
<a href="https://doi.org/10.5066/P9CPB1WD" class="uri">https://doi.org/10.5066/P9CPB1WD</a>.
Contributing ## Contributing
------------
We value your contributions and suggestions on how to make these We value your contributions and suggestions on how to make these
materials more useful to the community. Please feel free to share your materials more useful to the community. Please feel free to share your
...@@ -118,8 +108,7 @@ tracker](https://code.usgs.gov/inl/webmap/-/issues) or opening a [merge ...@@ -118,8 +108,7 @@ tracker](https://code.usgs.gov/inl/webmap/-/issues) or opening a [merge
request](https://code.usgs.gov/inl/webmap/-/merge_requests) to request](https://code.usgs.gov/inl/webmap/-/merge_requests) to
contribute. contribute.
Code of Conduct ## Code of Conduct
---------------
All contributions to- and interactions surrounding- this project will All contributions to- and interactions surrounding- this project will
abide by the [USGS Code of Scientific abide by the [USGS Code of Scientific
...@@ -127,8 +116,7 @@ Conduct](https://www.usgs.gov/office-of-science-quality-and-integrity/fundamenta ...@@ -127,8 +116,7 @@ Conduct](https://www.usgs.gov/office-of-science-quality-and-integrity/fundamenta
<!-- Embedded References --> <!-- Embedded References -->
Disclaimer ## Disclaimer
----------
This software is preliminary or provisional and is subject to revision. This software is preliminary or provisional and is subject to revision.
It is being provided to meet the need for timely best science. The It is being provided to meet the need for timely best science. The
...@@ -143,8 +131,7 @@ authorized or unauthorized use of the software. ...@@ -143,8 +131,7 @@ authorized or unauthorized use of the software.
Any use of trade, product, or firm names is for descriptive purposes Any use of trade, product, or firm names is for descriptive purposes
only and does not imply endorsement by the U.S. Government. only and does not imply endorsement by the U.S. Government.
MIT License ## MIT License
-----------
Copyright (c) 2023, webmap authors Copyright (c) 2023, webmap authors
...@@ -167,8 +154,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, ...@@ -167,8 +154,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Support ## Support
-------
The Idaho National Laboratory Project Office of the USGS supports the The Idaho National Laboratory Project Office of the USGS supports the
development and maintenance of **webmap**. Resources are available development and maintenance of **webmap**. Resources are available
...@@ -176,8 +162,7 @@ primarily for maintenance and responding to user questions. Priorities ...@@ -176,8 +162,7 @@ primarily for maintenance and responding to user questions. Priorities
on the development of new features are determined by the development on the development of new features are determined by the development
team. team.
Additional Publication Details ## Additional Publication Details
------------------------------
Additional metadata about this publication, not found in other parts of Additional metadata about this publication, not found in other parts of
the page is in this table. the page is in this table.
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment