Deprecate gSSURGO.Query() #3697
…G #3697
Description
Marked the gSSURGO.Query() function as deprecated:
- Added
@deprecatedroxygen tag. - Added
.Deprecated("extract_soil_gssurgo")at the top of the function. - Kept the rest of the function as-is.
- Updated
NEWS.mdandCHANGELOG.mdwith deprecation notes. - Documented the deprecation process in the coding style section.
No tests were related to this function.
Motivation and Context
This change informs users that gSSURGO.Query() is deprecated and directs them to use extract_soil_gssurgo() from soilDB instead. It prepares the function for removal in a future release and links to the issue #3697.
Review Time Estimate
- [ ] Immediately
- [ ] Within one week
- [x] When possible
Types of changes
- [x] Chore / Maintenance
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [x] My change requires a change to the documentation.
- [ ] My name is in the list of CITATION.cff
- [x] I agree that PEcAn Project may distribute my contribution under any or all of
- the same license as the existing code,
- and/or the BSD 3-clause license.
- [x] I have updated the CHANGELOG.md.
- [x] I have updated the documentation accordingly.
- [x] I have read the CONTRIBUTING document.
- [ ] I have added tests to cover my changes.
- [x] All new and existing tests passed.
Oddly, it seems like the most recent commit removed the part we want (documentation of deprecation) https://github.com/PecanProject/pecan/commit/f36090a7a74e03d27a1bc2e82dca5383ba529236
Oh, my bad I didn’t realize the deprecation note got removed I’ll fix the file; would you prefer I update this PR or open a new one?
Just regenerate the docs using devtools::document("modules/data.land")
This will auto-generate modules/data.land/man/gSSURGO.Query.Rd , no need to edit it manually since it's produced from the roxygen comments.
After regeneration commit the updated .Rd file.