-
Notifications
You must be signed in to change notification settings - Fork 33
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
Deprecate init_cumulative_fit()
#572
Conversation
init_cumulative_fit()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Since
stan_opts
() is the function that users actually interact with, can we add a deprecation warning there? Something like
lifecycle::deprecate_warn(
"1.5.0", "stan_opts(init_fit)",
details = "This argument will be removed in version 2.0.0."
)
- Can we add deprecation tests? For an example see
EpiNow2/tests/testthat/test-dist_spec.R
Line 230 in 4c1f460
test_that("deprecated arguments are caught", { - There are some
lintr
warnings about trailing whitespace
I didn't know about deprecation tests but was wondering about that yesterday. Good to know :). |
a282ae3
to
3964e3e
Compare
* Point out deprecation of "cumulative" option * Deprecate init_cumulative_fit function * Add NEWS item * Add PR number to NEWS item * Linting: trailing white spaces * Change versions * Add deprecation warning for init_fit argument * Move deprecation statement to separate paragraph * Add deprecation test * Add reviewer * Move deprecation warning to where the argument is called * Revise deprecation message * Don't use explicit namespacing * Throw deprecation warning if init_fit argument isn't NULL * Fix test
* Point out deprecation of "cumulative" option * Deprecate init_cumulative_fit function * Add NEWS item * Add PR number to NEWS item * Linting: trailing white spaces * Change versions * Add deprecation warning for init_fit argument * Move deprecation statement to separate paragraph * Add deprecation test * Add reviewer * Move deprecation warning to where the argument is called * Revise deprecation message * Don't use explicit namespacing * Throw deprecation warning if init_fit argument isn't NULL * Fix test
* Point out deprecation of "cumulative" option * Deprecate init_cumulative_fit function * Add NEWS item * Add PR number to NEWS item * Linting: trailing white spaces * Change versions * Add deprecation warning for init_fit argument * Move deprecation statement to separate paragraph * Add deprecation test * Add reviewer * Move deprecation warning to where the argument is called * Revise deprecation message * Don't use explicit namespacing * Throw deprecation warning if init_fit argument isn't NULL * Fix test
Description
This PR closes #541.
This PR deprecates the
init_cumulative_fit()
function.Initial submission checklist
devtools::test()
anddevtools::check()
).devtools::document()
).lintr::lint_package()
).After the initial Pull Request