Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecating aedseo and tsd, renaming to seasonal_onset and to_time_series #41

Merged
merged 9 commits into from
Nov 5, 2024

Conversation

SofiaOtero
Copy link
Contributor

@SofiaOtero SofiaOtero commented Nov 4, 2024

This PR is deprecating the aedseo and tsd function and renaming it as seasonal_onset and to_time_series.

Both functions can still be used, but have a deprecation warning.

  • The PR passes all local unit tests
  • I have documented any new features introduced
  • If the PR adds a new feature, please add an entry in NEWS.md
  • A reviewer is assigned to this PR

@SofiaOtero SofiaOtero self-assigned this Nov 4, 2024
@SofiaOtero SofiaOtero added refactor improve code without changing functionality documentation Improvements or additions to documentation and removed refactor improve code without changing functionality labels Nov 4, 2024
@SofiaOtero SofiaOtero marked this pull request as ready for review November 5, 2024 08:48
Copy link
Contributor

@RasmusSkytte RasmusSkytte left a comment

Choose a reason for hiding this comment

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

Overall looks good.

I have some minor suggestions and a few places where the renaming was missed.

Reading through the PR however, strengthens my belief that functions should just always be verbs.
I think it is confusing to the user that we both have a function called "seasonal_onset" and objects of class "seasonal_onset". As well a function called "tsd" and objects of class "tsd".
When reading the vignette, I keep having to focus on we hare talking about the function or the objects.
All of this could be avoided by renaming "tsd() -> "to_tsd()" and "seasonal_onset() -> detect_seasonal_onset()". Or something of the like.

R/tsd.R Outdated Show resolved Hide resolved
R/seasonal_onset.R Outdated Show resolved Hide resolved
R/autoplot.R Outdated Show resolved Hide resolved
R/autoplot.R Outdated Show resolved Hide resolved
R/plot.R Outdated Show resolved Hide resolved
R/predict.R Outdated Show resolved Hide resolved
R/autoplot.R Outdated Show resolved Hide resolved
R/tsd.R Outdated Show resolved Hide resolved
tests/testthat/test-seasonal_onset.R Show resolved Hide resolved
vignettes/aedseo_introduction.Rmd Outdated Show resolved Hide resolved
@SofiaOtero SofiaOtero changed the title Deprecating aedseo and renaming to seasonal_onset Deprecating aedseo and tsd, renaming to seasonal_onset and to_time_series Nov 5, 2024
@SofiaOtero SofiaOtero merged commit 626be5c into master Nov 5, 2024
26 checks passed
@SofiaOtero SofiaOtero deleted the rename_aedseo_function branch November 5, 2024 12:50
@SofiaOtero SofiaOtero mentioned this pull request Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants