960 function to create gis file new point aus for submission to attains - #1005
960 function to create gis file new point aus for submission to attains#1005hillarymarler wants to merge 61 commits into
Conversation
…-aus-for-submission-to-attains
added additional comments for TADA_CreatePointAUs
for more information, see https://pre-commit.ci
…ssion-to-attains' of https://github.com/USEPA/EPATADA into 960-function-to-create-gis-file-new-point-aus-for-submission-to-attains
bug fix for crosswalking water types
for more information, see https://pre-commit.ci
…-aus-for-submission-to-attains
for more information, see https://pre-commit.ci
…-aus-for-submission-to-attains
…ssion-to-attains' of https://github.com/USEPA/EPATADA into 960-function-to-create-gis-file-new-point-aus-for-submission-to-attains
for more information, see https://pre-commit.ci
…-aus-for-submission-to-attains
…-aus-for-submission-to-attains
|
Thanks for all of the detailed comments and suggestions @cristinamullin and @jbousquin. I am converting this to draft while I address them. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…-aus-for-submission-to-attains
for more information, see https://pre-commit.ci
…ssion-to-attains' of https://github.com/USEPA/EPATADA into 960-function-to-create-gis-file-new-point-aus-for-submission-to-attains
I changed the function name from "TADA_CrosswalkATTAINSWaterTypes()" to to "TADA_UpdateATTAINSAUMLCrosswalk()" |
@cristinamullin what do you think of these suggestions for function renaming? I like Justin's suggestion to get more specific as we move to the right in function names. If you agree, I will change them. |
| #' - `AU_ID` | ||
| #' - `geometry` | ||
| #' | ||
| #' If `download_geo = TRUE`, a shapefile is written to the downloads folder. |
There was a problem hiding this comment.
Is there a reason that 1) the default is c:/Users/username/Downloads is hard-wired as the download location using .get_downloads_path and that a user-chosen location couldn't be a parameter? 2) a zipped shapefile is the default format? Perhaps hardwiring these two things to downloads folder and zipped shapefile makes sense for the scope of this function, but as a naive user my immediate question is could I choose a geopackage as download format which I prefer and could I choose where to download?
There was a problem hiding this comment.
I followed @wokenny13's lead from his mod 3 work on downloaded file location. But I do like the idea of incorporating the option for a user-chosen location anytime EPATADA facilitates a download. The shp file format was @jesseboormanpadgett's suggestion for ease of use with ATTAINS, but I like your suggestion to facilitate downloading as a geopackage too as some users are likely to prefer that.
I'll add these topics to the agenda for the next team meeting.
|
A general comment that is broader than the scope of this PR but just making a note of here is I think we might consider some housekeeping of which functions go in which .R files and possibly consolidating / renaming some of the .R files? For instance, we have GeospatialFunctions.R and GeospatialUtilities.R - is there a reason they should be separate? Or do functions in GeospatialUtilities.R need to be kept separate from functions in Utilities.R? And some of the functions in GeospatialFunctions.R seem like they might make more sense pulled out in an Attains R file? |
I would like to discuss this as well as function naming conventions at a internal team meeting soon. |
|
Updates I still need to make on this PR:
I set the allowable value flag as a var, but have not yet created an internal function.
I made the flag language more similar.
I refactored the function so there isn't duplicated effort.
|
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…ssion-to-attains' of https://github.com/USEPA/EPATADA into 960-function-to-create-gis-file-new-point-aus-for-submission-to-attains
for more information, see https://pre-commit.ci
closes #960
Added a new function TADA_CreatePointAUGeometry and some helper functions. Made some minor changes to TADA_CrosswalkATTAINSWaterTypes and TADA_CreatePointAUs to facilitate the addition of TADA_CreatePointAUGeometry to the workflow. These new functions will be demonstrated n a future, updated mod 2 workflow vignette.
Next steps will be to create functions to generate the ATTAINS batch upload csvs for Assessment Units and Assessment Units with Monitoring Locations (this can be built off of TADA_CreateATTAINSAUMLCrosswalk).
It would be great to get #964 merged first. Then I can double check that the addition of org_id as a param for TADA_CrosswalkATTAINSWaterTypes does not have any impact on these changes. I do not expect it to.
Pull Request Checklist (convert PR to draft if in progress)
Required
Update your branch from the latest
developand resolve any merge conflictsRun devtools::test(), devtools::check(), and devtools::document() locally; ensure tests pass and fix any errors, warnings, or notes. Add new dependencies to
DESCRIPTIONand document appropriatelyAdd/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
Request review from at least one developer team member (convert PR to ready for review if it was designated as in progress)
Best practices
Include a summary of the changes made and relevant context/motivation
Link issues to auto-close on merge (use Development sidebar or include "Closes #" in the PR)
Refresh inline/block comments for clarity
Update roxygen docs and include examples; review help pages
Add/update tests in
tests/testthat; review the bot's coverage report from test-coverage and confirm all changes are coveredConditional
If there is a bot spelling comment, run spelling::spell_check_package() locally and fix any misspellings; add approved project terms to WORDLIST with spelling::update_wordlist()
If tests fail suggesting internal reference files need a refresh, run
.TADA_UpdateRefFiles()and.TADA_UpdateExampleData()locally viaMaintenanceScheduled.Ror trigger the Component File Update GitHub ActionIf new example data files were added, document them in
ExampleData.Rand include them inMaintenanceScheduled.Rfor regular refreshIf columns were added/updated, update
RequiredCols.RIf changes affect other package or the shiny app functions, update those impacted functions accordingly