-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
642 unused functions #659
642 unused functions #659
Conversation
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.
The removal of substitute_q
and extract_input
looks good.
I'm not sure about exporting create_sparklines
until https://github.com/insightsengineering/coredev-tasks/issues/510 is closed
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.
LGTM
#' This might be retrieved like \code{teal.transform::data_extract_spec(...)[[1]]$dataname}. | ||
#' @param filter logical if the connected \code{extract_data_spec} is used with \code{filter} option. | ||
#' @keywords internal | ||
extract_input <- function(varname, dataname, filter = FALSE) { |
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.
This function is a pure evil - it is clearly breaking encapsulation and introducing implementation details defined elsewhere in teal.transform. I disliked this from the very beginning. Happy to see it gone.
There is a clone of it in tmc but apparently it's used so not easy to remove...
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.
Yes, I saw that. Since we're not conducting works there, I decided to put it off for later.
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.
Would you mind raising an issue to get rid of the evil over there? Maybe we can improve it or replace it altogether.
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.
I will probably wait for bigger discussion about the future of teal.transform. Maybe we can overcome this in this way. Let's see.
Closes #642.
Removed
substitute_q
andextract_input
.Added
@keywords internal
tois_num_var_short
.