-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
refactor branch for teal.code #174
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code Coverage Summary
Diff against main
Results for commit: c82f1ad Minimum allowed coverage is ♻️ This comment has been updated with latest results |
…ression` (#176) this fixes #173 In this pull request, I've made updates to both the `get_code` and `replace_code` methods. Now, when the `deparse `arg is set to TRUE, these methods will return a concatenated string. Specifically, the `get_code` method will return character(0) when used with `new_qenv(),` provided no code has been set. As for `replace_code,` it will first split the input string using "\n", then replace the last string in this sequence. Finally, it concatenates these strings again before replacing the code. Removed `format_expression` function. Example ``` q <- new_qenv() get_code(q) # return character(0) replace_code(q, "i <- iris") # @code return character(0) qq <- within(q, i <- iris) qq <- within(qq, m <- mtcars) get_code(qq) # return "i <- iris\nm <- mtcars" replacement <- "i <- mtcars" qr <- replace_code(qq, replacement) get_code(qr) #return "i <- iris\ni <- mtcars" ``` Also review following modules for PR for changes. - [ ] teal insightsengineering/teal#976 - [ ] teal.data insightsengineering/teal.data#206 - [ ] teal.modules.general insightsengineering/teal.modules.general#615 - [ ] teal.modules.clinical insightsengineering/teal.modules.clinical#898 - [ ] teal.goshawk insightsengineering/teal.goshawk#250 - [ ] teal.osprey insightsengineering/teal.osprey#244 --------- Signed-off-by: kartikeya kirar <kirar.kartikeya1@gmail.com> Co-authored-by: Vedha Viyash <49812166+vedhav@users.noreply.github.com>
Unit Test Performance DifferenceAdditional test case details
Results for commit 66cfc68 ♻️ This comment has been updated with latest results. |
gogonzo
approved these changes
Dec 8, 2023
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.
👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a feature branch, DON'T MERGE and DON'T COMMENT. PR open to have a constant checks. We will start review this PR as a whole in the sprint 4.