-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Big Merge
- Loading branch information
Showing
95 changed files
with
2,163 additions
and
1,644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '!gh-pages' | ||
pull_request: | ||
branches: | ||
- '*' | ||
- '!gh-pages' | ||
|
||
name: run-examples | ||
|
||
jobs: | ||
run-examples: | ||
runs-on: ${{ matrix.config.os }} | ||
|
||
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} | ||
|
||
env: | ||
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | ||
RSPM: ${{ matrix.config.rspm }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v1 | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
|
||
- uses: r-lib/actions/setup-pandoc@v1 | ||
|
||
- name: Query dependencies | ||
run: | | ||
install.packages('remotes') | ||
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) | ||
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") | ||
shell: Rscript {0} | ||
|
||
- name: Cache R packages | ||
if: runner.os != 'Windows' | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.R_LIBS_USER }} | ||
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} | ||
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- | ||
|
||
- name: Install system dependencies | ||
if: runner.os == 'Linux' | ||
run: | | ||
while read -r cmd | ||
do | ||
eval sudo $cmd | ||
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))') | ||
- name: Install dependencies | ||
run: | | ||
remotes::install_cran("devtools") | ||
remotes::install_deps(dependencies = TRUE) | ||
remotes::install_cran("rcmdcheck") | ||
shell: Rscript {0} | ||
|
||
- name: Check | ||
env: | ||
_R_CHECK_CRAN_INCOMING_REMOTE_: false | ||
run: devtools::run_examples(run_dontrun = TRUE, run_donttest = TRUE) | ||
shell: Rscript {0} | ||
|
||
- name: Upload check results | ||
if: failure() | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: ${{ runner.os }}-r${{ matrix.config.r }}-results | ||
path: check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
exclusions: list("R/geom_spatial_rgb.R") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
Package: terrainr | ||
Type: Package | ||
Title: Retrieve Data from the 'USGS' National Map and Transform it for '3D' Landscape Visualizations | ||
Version: 0.2.1 | ||
Title: Landscape Visualizations in R and Unity | ||
Version: 0.3.0 | ||
Authors@R: | ||
person(given = "Michael", | ||
family = "Mahoney", | ||
role = c("aut", "cre"), | ||
email = "[email protected]", | ||
comment = c(ORCID = "0000-0003-2402-304X")) | ||
Description: Functions for the retrieval and manipulation of 'USGS' National Map | ||
data ('<https://viewer.nationalmap.gov/services/>'), enabling users to | ||
download elevation and image data for areas of interest. Functions are also | ||
provided to transform these data sources into formats that can be used to | ||
create 3D elevation models in the Unity rendering engine. | ||
Description: Functions for the retrieval, manipulation, and visualization of | ||
geospatial data, with an aim towards producing '3D' landscape visualizations | ||
in the Unity '3D' rendering engine. Functions are also provided for | ||
retrieving elevation data and base map tiles from the 'USGS' National Map | ||
('<https://viewer.nationalmap.gov/services/>'). | ||
URL: https://mikemahoney218.github.io/terrainr/, https://github.com/mikemahoney218/terrainr | ||
BugReports: https://github.com/mikemahoney218/terrainr/issues | ||
License: MIT + file LICENSE | ||
|
@@ -26,10 +26,10 @@ Imports: | |
gdalUtils, | ||
methods, | ||
png, | ||
utils, | ||
gdalUtilities, | ||
sf, | ||
rlang | ||
units, | ||
grDevices, | ||
ggplot2 | ||
RoxygenNote: 7.1.1 | ||
Suggests: | ||
testthat, | ||
|
@@ -38,9 +38,9 @@ Suggests: | |
knitr, | ||
rmarkdown, | ||
progress, | ||
ggplot2, | ||
jpeg, | ||
tiff | ||
tiff, | ||
brio | ||
Config/testthat/parallel: true | ||
Config/testthat/edition: 3 | ||
VignetteBuilder: knitr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,22 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
S3method(get_bbox,RasterLayer) | ||
S3method(get_bbox,default) | ||
S3method(get_bbox,sf) | ||
S3method(add_bbox_buffer,Raster) | ||
S3method(add_bbox_buffer,sf) | ||
S3method(get_tiles,Raster) | ||
S3method(get_tiles,list) | ||
S3method(get_tiles,sf) | ||
S3method(get_tiles,sfc) | ||
S3method(set_bbox_side_length,Raster) | ||
S3method(set_bbox_side_length,sf) | ||
export(StatSpatialRGB) | ||
export(add_bbox_buffer) | ||
export(calc_haversine_distance) | ||
export(combine_overlays) | ||
export(convert_distance) | ||
export(deg_to_rad) | ||
export(export_bounding_box) | ||
export(export_coord_pair) | ||
export(geom_spatial_rgb) | ||
export(georeference_overlay) | ||
export(get_bbox) | ||
export(get_bbox_centroid) | ||
export(get_coord_bbox) | ||
export(get_tiles) | ||
export(hit_national_map_api) | ||
export(merge_rasters) | ||
export(point_from_distance) | ||
export(rad_to_deg) | ||
export(raster_to_raw_tiles) | ||
export(set_bbox_side_length) | ||
export(terrainr_bounding_box) | ||
export(terrainr_coordinate_pair) | ||
export(stat_spatial_rgb) | ||
export(vector_to_overlay) | ||
exportClasses(terrainr_bounding_box) | ||
exportClasses(terrainr_coordinate_pair) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.