Skip to content

Improvements (i hope so) #254

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

Merged
merged 5 commits into from
Jun 4, 2025
Merged

Improvements (i hope so) #254

merged 5 commits into from
Jun 4, 2025

Conversation

gogonzo
Copy link
Contributor

@gogonzo gogonzo commented Jun 3, 2025

Code balance is + because I've added one test ;]

@gogonzo gogonzo added the core label Jun 3, 2025
@@ -25,19 +25,27 @@
#' q <- eval_code(q, expression(assert_number(a)))
#'
#' @aliases eval_code,qenv-method
#' @aliases eval_code,qenv.error-method
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is needed - all methods have to have own docs position

@averissimo averissimo self-assigned this Jun 3, 2025
Copy link
Contributor

@averissimo averissimo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, I have one comment about passing the arguments forward

@@ -48,20 +48,13 @@
#' @export
#'
within.qenv <- function(data, expr, ...) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check for named dots?

pkgload::load_all("teal.code")
#> ℹ Loading teal.code
qenv() |> within(aa <- 1+1, TRUE, FALSE)
#> <environment: 0x5b1c29313ae0> 🔒 
#> Parent: <environment: devtools_shims> 
#> Bindings:
#> - aa: [numeric]

Created on 2025-06-03 with reprex v2.1.1

Copy link
Contributor

@averissimo averissimo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@gogonzo gogonzo merged commit 2eab262 into teal_reportable Jun 4, 2025
1 check passed
@gogonzo gogonzo deleted the simplify_within branch June 4, 2025 08:42
@github-actions github-actions bot locked and limited conversation to collaborators Jun 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants