-
-
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
Revert square bracket@main #553
Conversation
@gogonzo Initially, we converted the |
Code Coverage Summary
Diff against main
Results for commit: 41cac8f Minimum allowed coverage is ♻️ This comment has been updated with latest results |
|
In addition to this needs to be refactored in |
this PR fixes #799 and PR is related to issue insightsengineering/teal.code#84 ====================================================== based on this PR insightsengineering/teal.modules.general#553 teal.code::dev_suppress() is used to avoid printing plot on console. --------- Co-authored-by: kartikeya <kartikeya.kirar@unicle.life>
reverted replace of square bracket by
get_var
. Problem withget_var
is as follows.get_var(object = qenv(), object = "varname")
is dispatched onobject
and there are variants forqenv
andqenv.error
. Sometimesqenv()
can be a shiny-validation-error which causes error message likeno get_var method for object error bla bla
.[[
is generic exported from base and we have extra[[.qenv
and[[.qenverror
and this function have also other variants created in base - so that it doesn't fail when calling<simpleError>[["varname"]]
It means that to fix problem of plot printed to devide we need to use
teal.code::supress_dev()
in specific cases. We don't need to depend on aget_var