Skip to content

Improvements (i hope so) - #254

Merged
gogonzo merged 5 commits into
teal_reportablefrom
simplify_within
Jun 4, 2025
Merged

Improvements (i hope so)#254
gogonzo merged 5 commits into
teal_reportablefrom
simplify_within

Conversation

@gogonzo

@gogonzo gogonzo commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

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

@gogonzo gogonzo added the core label Jun 3, 2025
Comment thread R/qenv-eval_code.R
#' q <- eval_code(q, expression(assert_number(a)))
#'
#' @aliases eval_code,qenv-method
#' @aliases eval_code,qenv.error-method

Copy link
Copy Markdown
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

@averissimo averissimo left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread R/qenv-within.R
@@ -48,20 +48,13 @@
#' @export
#'
within.qenv <- function(data, expr, ...) {

Copy link
Copy Markdown
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

Comment thread R/qenv-within.R

@averissimo averissimo left a comment

Copy link
Copy Markdown
Contributor

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
@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