-
-
Notifications
You must be signed in to change notification settings - Fork 8
211 [.qenv
S3 method + replacement of @id
, @warnings
, and @messages
fields
#216
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
Conversation
@gogonzo what do you think about creating a |
Theoretically if you don't make a new You already noticed a problem with |
Sounds like it would be good to know which indexes of However, library(teal.code)
q <- qenv()
code1 <- "a <- 1;b<-2"
code2 <- "a <- a + 2"
q <- eval_code(eval_code(q, code1), code2)
q@id
# [1] 930284716 1574791756
q@warnings
# [1] "" ""
q@messages
# [1] "" ""
q@code
# [1] "a <- 1;b<-2" "a <- a + 2"
teal.code::get_code(q, names = "a")
# [1] "a <- 1\na <- a + 2" We could extend But there is one more issue. Imagine that part of |
I see the problem. |
Alrighty, that would make sense. Should we do the same for how |
… number of calls in @code
@gogonzo I pushed all the changes I planned for this PR. There are 4 tests failing but I think it's proper time to review the current state. We need to double check if those changes do not brake any tests in |
Signed-off-by: Marcin <[email protected]>
Code Coverage Summary
Diff against main
Results for commit: ba1a552 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 12 suites 3s ⏱️ Results for commit ba1a552. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Additional test case details
Results for commit 868e6c8 ♻️ This comment has been updated with latest results. |
Thanks @gogonzo for the updates! Do you think those could share the same core and be wrappers to one function that takes the name of the attribute as an input? |
good point 👍 I'll implement and fix CICD in the next commit |
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.
🔥
Closes
qenv
object #211Changes
@code
,@id
,@messages
,@warning
so they are all part of the@code
attributes[.
method forqenv
that reduces the object to thecode
andobjects
limited to those provided innames
parameter.eval_code
andget_code
analyze the code.eval_code
.Checklist:
@id
,@warnings
,@messages
fields[.
inteal_data
package so it also handlesjoin_keys
,@verified
and potentiallydatanames
211[.teal_data
S3 method teal.data#346subset
is an S3 method inbase
packageteal.data
are not failing after this changeteal
are not failing after this change Unify#@linksto
usage teal#1397tmc
andtmg
are not failing after this changeTested with