-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Export more S3
methods for model_parameters()
generic
#746
Comments
If someone implements this, all of the assignments should be stacked like:
|
But, IINM, We'll need to do something like this if both of them are to appear in #' @export
model_parameters.a <- model_parameteters.default
#' @export
model_parameters.b <- model_parameteters.default |
Yes, I can confirm that this is the case. parameters/R/methods_quantreg.R Lines 42 to 59 in 47b6c0c
|
Hmmm, there's a way, let me see what I did before Edit: ah nope, I was misremembering. |
Okay. Thanks for checking! That would have indeed been cleaner if it were supported. Is it that roxygen2 can't handle this, or that R itself doesn't support it? Just wondering if we can make a feature request. |
But, regardless, at least for now we can just do the following: #' @export
model_parameters.a <- model_parameteters.default
#' @export
model_parameters.b <- model_parameteters.default |
It's a Roxygen limitation |
In a PR, I the added export S3 methods for Just as FYI reference, here is clumsy code I used:
|
A lot of the objects listed below are actually supported in parameters, but developers who will be comparing it with broom will think they aren't because there are no exported methods in
NAMESPACE
.Created on 2022-07-17 by the reprex package (v2.0.1)
This is because most of them are supported by the default method:
Created on 2022-07-17 by the reprex package (v2.0.1)
I think we just need to do something like-
This is low priority, and probably easy enough to be handled by newcomers.
The text was updated successfully, but these errors were encountered: