Skip to content

Conversation

@hillarymarler
Copy link
Collaborator

This PR creates internal functions for preparing and adding ATTAINS geospatial data to TADA leaflet maps. It also (optionally) adds ATTAINS geospatial data to TADA_FindNearbySites.

I plan to do some additional refining of the internal functions, but wanted to get these current, working versions added to the develop branch.

Pull Request Checklist

Preparation

  • Update your branch from the latest develop and resolve any merge conflicts

  • Before creating a pull request trigger the format-update GitHub Action on your branch to format the code

Documentation

  • Add/update inline and/or block comments to clarify complexity, context and intent

  • Add/update function documentation (roxygen), include working examples, build docs locally using devtools::document(), and inspect added/updated help pages for content and format

  • Add/update vignettes for corresponding changes in functionality, list these under articles in _pkgdown.yml, and ensure added/updated vignettes run and build with proper formatting locally

Maintenance & Data Refresh

  • Add new dependencies to DESCRIPTION and document appropriately

  • Run spelling maintenance in requiredMaintenance.R

  • If changes affect other package or the shiny app functions, update those impacted functions accordingly

  • If columns were added/updated, add/update them in RequiredCols.R

  • Run .TADA_UpdateRefFiles() and .TADA_UpdateExampleData() locally via MaintenanceScheduled.R or trigger the Component File Update GitHub Action

  • If new example data files were added, document them in ExampleData.R and include them in MaintenanceScheduled.R for regular refresh

Tests and checks

  • Add/update tests in tests/testthat to cover changes

  • Run devtools::test() to verify new and existing tests pass

  • Run devtools::check() and address any errors, warnings or notes

Pull Request Description

  • Includes a summary of the changes made

  • Includes relevant context/motivation

  • Includes links to related issues or pull requests (keywords like "Closes #issue_number" automatically close related issues when pull request is merged)

Review

  • Review the bot-commented coverage-report generated by test-coverage to confirm all changes are covered by tests

  • Review/accept any bot-suggested format changes

  • Request review from at least one developer team member

@github-actions
Copy link
Contributor

github-actions bot commented Jan 16, 2026

coverage-report

File Coverage Missing
All files 35%
R/ATTAINSCrosswalks.R 25% 63-859 1069-1084 1088-1092 1097-1102 1107 1113-1133 1139-1142 1147-1168 1179-1194 1247-1250 1425-1481 1488-1740 1925-1937 1941-1944 1949 1977-1980 1992-1995 2003-2007 2023-2027 2043-2049 2057-2072 2077 2083-2096 2116-2119 2275-2284 2289-2299 2459-2732 2924-3441 3596-3615 3619-3622 3631-3644 3651-3671 3679-3683 3696-3700 3731-3841 3893-4050 4055-4058 4065-4208
R/ATTAINSRefTables.R 0% 24-935
R/autoClean.R 89% 152-153 248-254 413-414 424-428
R/autoFilter.R 46% 31-228 354-356 362 393 425-437
R/CensoredDataSuite.R 86% 52-53 142 181-182 253-259 373-381 494-495 500-502 505-507 515 562-569 572-573 579-584 601-603
R/CriteriaComparison.R 87% 173-177 182 191-193 240-265
R/CriteriaMethods.R 17% 227-238 242-244 261-263 268-270 275-277 287-300 308-335 505-509 525-529 636-793 810-985 1013-1062 1086-1646 1664-1979
R/CriteriaRefTables.R 0% 22-195
R/DataDiscoveryRetrieval.R 31% 199 210-213 230-233 246-249 255 259 276-751 765-767 775 777 782-789 797 803 805 809 811 817 821 823 833 835 839 845 847 851 853 858 860 864 871-878 886 898-916 927-933 962-980 994-1012 1031 1128-1159 1264-1271 1369-1405 1498-1501 1570-1748
R/DepthProfile.R 0% 102-2020
R/Figures.R 0% 64-1521
R/GeospatialFunctions.R 34% 114-118 193-195 223-225 283-287 309 371-372 375-377 443-445 500-502 516 582-584 724 730-733 803-808 812 820-1248 1434-1440 1447-2374 2570-2580 2627-2637 2643-2674 2740 2744 2748 2770-2818 2900-2988 2993-3028 3123-3901
R/GeospatialUtilities.R 9% 108 132 185-1722 1747-1749 1793-1795 1831
R/MaintenanceScheduled.R 0% 42-449
R/Maps.R 7% 26-645 768 780-937
R/RequiredCols.R 20% 386-629
R/ResultFlagsDependent.R 56% 60-62 67 109-118 143-150 253 290-294 316-319 326-329 345-361 422 445-447 453-454 460 508-519 525-532 595-598 610 626-637 662-664 677-683 754-881 951-954 999 1066-1078 1102-1104 1108-1110 1116-1125
R/ResultFlagsIndependent.R 69% 70-72 78 123-157 265-267 272 276 280 290 388-391 403-435 525-527 532-534 543 671-681 696-721 810-812 817-819 828 948-966 981-1168 1213 1235-1254 1267-1272 1375 1379 1437-1452 1457 1461-1468 1532-1533 1628-1644 1716-1721 1842-1856
R/Tables.R 93% 19-30
R/TADAGeospatialRefLayers.R 0% 8-13
R/TADARefTables.R 85% 86-88 105-111
R/Transformations.R 88% 76-77 82-84 221-232 394-395 444-447 515 792 924-925 942 973-984 987-1004 1008-1016
R/UnitConversions.R 82% 147 421 428 435 442-444 451 458-460 469-472 482-484 634-716 738-784 807 855 868-882 1115-1119 1199 1276-1279 1321
R/Utilities.R 54% 12-16 489 607-608 612 617-619 714 843-854 915-916 923 1008-1009 1039-1043 1148-1149 1153-1154 1164-1168 1173-1178 1220-1579 1605-1606 1619-1622 1693-2114 2315-2343 2377 2380 2383-2386 2390 2401 2417-2418 2420-2421 2423-2438 2440 2442 2447-2448 2450-2453 2455 2457 2460 2475 2481 2489 2494 2502-2507 2512-2517
R/WQPWQXRefTables.R 67% 21-95 119 131 137-143 154-158 180 192 198-206 278-282 304 316 322-328 423-427 448 460 466-472 618-622 644 656 662-668 685-689 712 724 730-736 1056-1283

Minimum allowed coverage is 10%

Generated by 🐒 cobertura-action against 155ad68

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

air

[air] reported by reviewdog 🐶

wqp_sites <- addWQPSites(sumdat,


[air] reported by reviewdog 🐶

EPATADA/R/Maps.R

Lines 943 to 953 in b8305b7

attains_au <- ifelse(any(c(
"ATTAINS line features",
"ATTAINS point features",
"ATTAINS polygon features"
) %in% overlay_groups),
TRUE,
FALSE
)
# attains missing
attains_missing <- ifelse("not in ATTAINS" %in% overlay_groups,


[air] reported by reviewdog 🐶

# NHD catchments containing ATTAINS features


[air] reported by reviewdog 🐶

EPATADA/R/Maps.R

Lines 960 to 963 in b8305b7

nhd_attains <- ifelse("ATTAINS catchments" %in% overlay_groups,
TRUE,
FALSE
)


[air] reported by reviewdog 🐶

nhd_no_attains <- ifelse("missing ATTAINS catchment outlines" %in% overlay_groups,


[air] reported by reviewdog 🐶


[air] reported by reviewdog 🐶

EPATADA/R/Maps.R

Lines 990 to 993 in b8305b7

map <- addLayerControl(
map = map,
overlay_groups = overlay_groups
)


[air] reported by reviewdog 🐶

EPATADA/R/RequiredCols.R

Lines 528 to 530 in b8305b7

na.cols <- .data |>
purrr::keep(~ all(is.na(.x))) |>
names()


[air] reported by reviewdog 🐶

check_inv <- .data[
,


[air] reported by reviewdog 🐶

EPATADA/R/UnitConversions.R

Lines 323 to 325 in b8305b7

tada.all <- tada.all |>
dplyr::select(-CharUnit) |>
dplyr::distinct()


[air] reported by reviewdog 🐶

.data[[col.name]] <- switch(col.type,


[air] reported by reviewdog 🐶

EPATADA/R/autoClean.R

Lines 277 to 279 in b8305b7

do.list <- do.data |>
dplyr::select(ResultIdentifier) |>
dplyr::pull()

),
data = outsideusa
)
map <- addFlaggedSitesMarkers(outsideusa,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
map <- addFlaggedSitesMarkers(outsideusa,
map <- addFlaggedSitesMarkers(
outsideusa,

Comment on lines +304 to +307
map <- addFlaggedSitesMarkers(lowres,
map = map,
flag_type = "lowres"
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
map <- addFlaggedSitesMarkers(lowres,
map = map,
flag_type = "lowres"
)
map <- addFlaggedSitesMarkers(lowres, map = map, flag_type = "lowres")

Comment on lines +354 to +357
TADA_NearbySitesMap <- function(.data,
dist_buffer = 100,
attains = TRUE,
catchment = FALSE) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
TADA_NearbySitesMap <- function(.data,
dist_buffer = 100,
attains = TRUE,
catchment = FALSE) {
TADA_NearbySitesMap <- function(
.data,
dist_buffer = 100,
attains = TRUE,
catchment = FALSE
) {

Comment on lines +389 to +392
nearby.cols <- append(nearby.cols, c(
"ATTAINS.AssessmentUnitIdentifier",
"TADA.AURefSource"
))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
nearby.cols <- append(nearby.cols, c(
"ATTAINS.AssessmentUnitIdentifier",
"TADA.AURefSource"
))
nearby.cols <- append(
nearby.cols,
c("ATTAINS.AssessmentUnitIdentifier", "TADA.AURefSource")
)

Comment on lines 421 to 423
dplyr::select(
LongitudeMeasure,
LatitudeMeasure,
TADA.MonitoringLocationIdentifier,
MonitoringLocationIdentifier,
MonitoringLocationName,
TADA.LatitudeMeasure,
TADA.LongitudeMeasure,
OrganizationIdentifier,
OrganizationFormalName,
TADA.NearbySiteGroup
dplyr::all_of(nearby.cols)
) |>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
dplyr::select(
LongitudeMeasure,
LatitudeMeasure,
TADA.MonitoringLocationIdentifier,
MonitoringLocationIdentifier,
MonitoringLocationName,
TADA.LatitudeMeasure,
TADA.LongitudeMeasure,
OrganizationIdentifier,
OrganizationFormalName,
TADA.NearbySiteGroup
dplyr::all_of(nearby.cols)
) |>
dplyr::select(dplyr::all_of(nearby.cols)) |>

silent = TRUE
)


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change

Comment on lines +549 to +550
dplyr::filter(assessmentunitidentifier %in%
unique(TADA_nearby$ATTAINS.AssessmentUnitIdentifier))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
dplyr::filter(assessmentunitidentifier %in%
unique(TADA_nearby$ATTAINS.AssessmentUnitIdentifier))
dplyr::filter(
assessmentunitidentifier %in%
unique(TADA_nearby$ATTAINS.AssessmentUnitIdentifier)
)

Comment on lines +555 to +556
dplyr::filter(assessmentunitidentifier %in%
unique(TADA_nearby$ATTAINS.AssessmentUnitIdentifier))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
dplyr::filter(assessmentunitidentifier %in%
unique(TADA_nearby$ATTAINS.AssessmentUnitIdentifier))
dplyr::filter(
assessmentunitidentifier %in%
unique(TADA_nearby$ATTAINS.AssessmentUnitIdentifier)
)

icons = images
)


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change

weight = 1,
# label = ~as.character(TADA.MonitoringLocationIdentifier),
popup = paste0(
popup = ~paste0(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
popup = ~paste0(
popup = ~ paste0(

}

#' addAllATTAINS
#' Internal function to add all ATTAINS assessment units (lines, points, or polygons) or
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing these args in documentation: ‘map’ ‘points_layer’ ‘polygons_layer’ ‘lines_layer’ ‘catchment_layer’
‘outline_layer’ ‘missing_raw_layer’

#' @param .data A data frame created using prepATTAINSMapper (must contain a geometry
#' column).
#'
#' @param overlay_groups Initialized vector to add names of groups added to map. If
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure what to supply to this function for overlay_groups from reading this documenation. Can it be clarified?

Comment on lines +749 to 751
checkTADAColsForMap(ATTAINS_table,
attains = TRUE
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
checkTADAColsForMap(ATTAINS_table,
attains = TRUE
)
checkTADAColsForMap(ATTAINS_table, attains = TRUE)

ATTAINS_polygons$assessmentunitidentifier
)
),
missing_raw_features <- findATTAINSMissingRawFeatures(ATTAINS_catchments,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
missing_raw_features <- findATTAINSMissingRawFeatures(ATTAINS_catchments,
missing_raw_features <- findATTAINSMissingRawFeatures(
ATTAINS_catchments,

Comment on lines 95 to 97
epsg_codes,
by = "HorizontalCoordinateReferenceSystemDatumName"
) |>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
epsg_codes,
by = "HorizontalCoordinateReferenceSystemDatumName"
) |>
epsg_codes,
by = "HorizontalCoordinateReferenceSystemDatumName"
) |>

Comment on lines 790 to +791
# if data was spatial, remove for downstream leaflet dev:
try(ATTAINS_table <- ATTAINS_table |> sf::st_drop_geometry(), silent = TRUE)
#try(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
# if data was spatial, remove for downstream leaflet dev:
try(ATTAINS_table <- ATTAINS_table |> sf::st_drop_geometry(), silent = TRUE)
#try(
# if data was spatial, remove for downstream leaflet dev:
#try(

Comment on lines +794 to +795
# create df to assign color based on ATTAINS overall status
colors <- getATTAINSColorsRef()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
# create df to assign color based on ATTAINS overall status
colors <- getATTAINSColorsRef()
# create df to assign color based on ATTAINS overall status
colors <- getATTAINSColorsRef()

dark_col = c(tada.pal[12], tada.pal[6], tada.pal[11]),
priority = c(1, 2, 3)
)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
# prep ATTAINS assessment unit features
au_mapper <- prepAllATTAINSMapper(
color_ref = colors,
lines_layer = ATTAINS_lines,
points_layer = ATTAINS_points,
polygons_layer = ATTAINS_polygons
)

Comment on lines +798 to 804
# prep ATTAINS assessment unit features
au_mapper <- prepAllATTAINSMapper(
color_ref = colors,
lines_layer = ATTAINS_lines,
points_layer = ATTAINS_points,
polygons_layer = ATTAINS_polygons
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
# prep ATTAINS assessment unit features
au_mapper <- prepAllATTAINSMapper(
color_ref = colors,
lines_layer = ATTAINS_lines,
points_layer = ATTAINS_points,
polygons_layer = ATTAINS_polygons
)
# CATCHMENT FEATURES - try to pull missing feature AU data if it exists. Otherwise, move on...
try(
missing_raw_mapper <- missing_raw_features |>
dplyr::left_join(colors, by = "overallstatus") |>
dplyr::mutate(type = "Raw Feature Unavailable"),
silent = TRUE
)

)

leg.labels <- c(attains.labels, wqp.labels, catch.labels)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
nhd_no_attains <- ifelse(
"missing ATTAINS catchment outlines" %in% overlay_groups,
TRUE,
FALSE
)

Comment on lines +912 to 923
# add TADA custom legend to map
map <- addTADAMapLegend(
map = map,
icons = images,
icon_labels = img.labels,
wqp = TRUE,
ref_icons = ref_icons,
attains_au = attains_au,
attains_missing = attains_missing,
nhd_attains = nhd_attains,
nhd_no_attains = nhd_no_attains
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
# add TADA custom legend to map
map <- addTADAMapLegend(
map = map,
icons = images,
icon_labels = img.labels,
wqp = TRUE,
ref_icons = ref_icons,
attains_au = attains_au,
attains_missing = attains_missing,
nhd_attains = nhd_attains,
nhd_no_attains = nhd_no_attains
)
# add TADA custom legend to map
map <- addTADAMapLegend(
map = map,
icons = images,
icon_labels = img.labels,
wqp = TRUE,
ref_icons = ref_icons,
attains_au = attains_au,
attains_missing = attains_missing,
nhd_attains = nhd_attains,
nhd_no_attains = nhd_no_attains
)

Comment on lines +925 to +926
# add button to toggle map legend on/off
map <- addLegendToggle(map = map)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
# add button to toggle map legend on/off
map <- addLegendToggle(map = map)
# add button to toggle map legend on/off
map <- addLegendToggle(map = map)

Comment on lines +928 to +932
# add layer control to map
map <- addLayerControl(
map = map,
overlay_groups = overlay_groups
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
# add layer control to map
map <- addLayerControl(
map = map,
overlay_groups = overlay_groups
)
# add layer control to map
map <- addLayerControl(map = map, overlay_groups = overlay_groups)

Comment on lines 934 to 937
# remove intermediate objects
rm(images.ref, leg.labels)
# add button to toggle map legend on/off
map <- htmlwidgets::onRender(
map,
"
function(el, x) {
var button = document.createElement('button');
button.innerHTML = 'Toggle Legend';
button.style.position = 'absolute';
button.style.top = '10px';
button.style.right = '10px'; // Positioning in the top-right corner
button.style.zIndex = 1000;
button.style.padding = '5px 10px';
button.style.backgroundColor = '#fff';
button.style.border = '1px solid #ccc';
button.style.borderRadius = '4px';
button.onclick = function() {
var legend = el.querySelector('.leaflet-control.legend'); // Adjust this selector to target the legend only
if (legend) {
if (legend.style.display === 'none') {
legend.style.display = 'block';
} else {
legend.style.display = 'none';
}
}
};
el.appendChild(button);
}
"
)
# add layer control to map
if (length(overlay_groups) > 0) {
overlay_groups <- unique(overlay_groups)
map <- map |>
leaflet::addLayersControl(
baseGroups = c("World topo"), # Always include a base group
overlayGroups = overlay_groups,
position = "bottomleft",
options = leaflet::layersControlOptions(collapsed = TRUE)
)
}
rm(sumdat, overlay_groups)
# Return leaflet map of TADA WQ and its associated ATTAINS data
return(map)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

Suggested change
# remove intermediate objects
rm(images.ref, leg.labels)
# add button to toggle map legend on/off
map <- htmlwidgets::onRender(
map,
"
function(el, x) {
var button = document.createElement('button');
button.innerHTML = 'Toggle Legend';
button.style.position = 'absolute';
button.style.top = '10px';
button.style.right = '10px'; // Positioning in the top-right corner
button.style.zIndex = 1000;
button.style.padding = '5px 10px';
button.style.backgroundColor = '#fff';
button.style.border = '1px solid #ccc';
button.style.borderRadius = '4px';
button.onclick = function() {
var legend = el.querySelector('.leaflet-control.legend'); // Adjust this selector to target the legend only
if (legend) {
if (legend.style.display === 'none') {
legend.style.display = 'block';
} else {
legend.style.display = 'none';
}
}
};
el.appendChild(button);
}
"
)
# add layer control to map
if (length(overlay_groups) > 0) {
overlay_groups <- unique(overlay_groups)
map <- map |>
leaflet::addLayersControl(
baseGroups = c("World topo"), # Always include a base group
overlayGroups = overlay_groups,
position = "bottomleft",
options = leaflet::layersControlOptions(collapsed = TRUE)
)
}
rm(sumdat, overlay_groups)
# Return leaflet map of TADA WQ and its associated ATTAINS data
return(map)
# remove intermediate objects
rm(sumdat, overlay_groups)
# Return leaflet map of TADA WQ and its associated ATTAINS data
return(map)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

if(nrow(catchments) > 0) {
# get one catchment per WQP location
catchments.cw <- filt.data |>
dplyr::select(
TADA.MonitoringLocationIdentifier,
TADA.LatitudeMeasure,
TADA.LongitudeMeasure,
HorizontalCoordinateReferenceSystemDatumName
) |>
dplyr::distinct() |>
TADA_MakeSpatial() |>
sf::st_join(catchments, join = sf::st_nearest_feature) |>
dplyr::group_by(TADA.MonitoringLocationIdentifier) |>
dplyr::mutate(catchCount = dplyr::n()) |>
dplyr::select(TADA.MonitoringLocationIdentifier, nhdplusid) |>
dplyr::distinct() |>
sf::st_drop_geometry()
catchments.filt <- catchments |>
dplyr::filter(nhdplusid %in% catchments.cw$nhdplusid)
catchments.no.geo <- catchments |>
sf::st_drop_geometry() |>
dplyr::distinct()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

try(
catchments <- catchments.filt |>
dplyr::left_join(
water_types,
by = c("assessmentunitidentifier" = "assessmentUnitId")
),
silent = TRUE
)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

EPATADA/R/Maps.R

Lines 806 to 812 in 08a4446

# CATCHMENT FEATURES - try to pull missing feature AU data if it exists. Otherwise, move on...
try(
missing_raw_mapper <- missing_raw_features |>
dplyr::left_join(colors, by = "overallstatus") |>
dplyr::mutate(type = "Raw Feature Unavailable"),
silent = TRUE
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

updates to TADA_NearbySitesMap

3 participants