Skip to content

Conversation

@shivpratikhande
Copy link

…G #3697

Description

Marked the gSSURGO.Query() function as deprecated:

  • Added @deprecated roxygen tag.
  • Added .Deprecated("extract_soil_gssurgo") at the top of the function.
  • Kept the rest of the function as-is.
  • Updated NEWS.md and CHANGELOG.md with 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
  • When possible

Types of changes

  • 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:

  • My change requires a change to the documentation.
  • My name is in the list of CITATION.cff
  • 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.
  • I have updated the CHANGELOG.md.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

…PecanProject#3697

Signed-off-by: Shivpratik Hande <shivv@Shivpratiks-MacBook-Air.local>
Copy link
Member

@dlebauer dlebauer left a comment

Choose a reason for hiding this comment

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

Awesome - that's perfect, thank you for your contribution!

fixes #3697

Copy link
Member

@dlebauer dlebauer left a comment

Choose a reason for hiding this comment

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

actually, I think you need to run make document or devtools::document('modules/data.land') and check in the updated Rd file first.

Copy link
Member

@dlebauer dlebauer left a comment

Choose a reason for hiding this comment

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

looks great, thanks for your help @divine7022!

Copy link
Collaborator

@divine7022 divine7022 left a comment

Choose a reason for hiding this comment

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

run devtools::document("modules/data.land") and commit modules/data.land/man/gSSURGO.Query.Rd then it's read to merge

Signed-off-by: Shivpratik Hande <shivv@Shivpratiks-MacBook-Air.local>
@dlebauer
Copy link
Member

dlebauer commented Dec 5, 2025

Oddly, it seems like the most recent commit removed the part we want (documentation of deprecation) f36090a

@shivpratikhande
Copy link
Author

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?

@divine7022
Copy link
Collaborator

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.

Copy link
Collaborator

@divine7022 divine7022 left a comment

Choose a reason for hiding this comment

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

please run devtools::document("modules/data.land") along and commit .Rd file

Comment on lines 7 to 8
#' `gSSURGO.Query()` was deprecated in PEcAn 1.8.0.
#' `gSSURGO.Query()` is deprecated, please use `PEcAn.data.land::extract_soil_gssurgo()` instead (see issue #3697).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#' `gSSURGO.Query()` was deprecated in PEcAn 1.8.0.
#' `gSSURGO.Query()` is deprecated, please use `PEcAn.data.land::extract_soil_gssurgo()` instead (see issue #3697).
#' `gSSURGO.Query()` is deprecated, please use `PEcAn.data.land::extract_soil_gssurgo()` instead (see issue #3697).

Shivpratik Hande added 2 commits December 6, 2025 01:24
Signed-off-by: Shivpratik Hande <shivv@Shivpratiks-MacBook-Air.local>
Signed-off-by: Shivpratik Hande <shivv@Shivpratiks-MacBook-Air.local>
@dlebauer dlebauer dismissed divine7022’s stale review December 7, 2025 01:00

Change has been addressed.

@dlebauer dlebauer enabled auto-merge December 7, 2025 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants