Skip to content

Commit c8ec257

Browse files
committed
Merge remote-tracking branch 'origin/main' into last_value@teal_reportable
* origin/main: [skip actions] Bump version to 0.6.1.9003 `{teal}` module returns a `teal_report` object that extends from `teal_data` (#255)
2 parents 909c0f0 + 5a26afd commit c8ec257

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Type: Package
22
Package: teal.code
33
Title: Code Storage and Execution Class for 'teal' Applications
4-
Version: 0.6.1.9002
5-
Date: 2025-05-20
4+
Version: 0.6.1.9003
5+
Date: 2025-06-12
66
Authors@R: c(
77
person("Dawid", "Kaledkowski", , "[email protected]", role = c("aut", "cre")),
88
person("Aleksander", "Chlebowski", , "[email protected]", role = "aut"),

NEWS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# teal.code 0.6.1.9002
1+
# teal.code 0.6.1.9003
22

33
### Enhancements
44

@@ -8,6 +8,10 @@
88

99
* Fix a problem detecting co-occurrences when expression has multiple lines.
1010

11+
### Miscellaneous
12+
13+
* Refactor `eval_code` method signature to allow for more flexibility when extending the `eval_code`/`within` functions.
14+
1115
# teal.code 0.6.1
1216

1317
### Bug fixes

R/qenv-eval_code.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ setMethod("eval_code", signature = c(object = "qenv.error"), function(object, co
4343

4444
#' @keywords internal
4545
.eval_code <- function(object, code, ...) {
46-
if (identical(code, "")) {
46+
if (identical(trimws(code), "") || length(code) == 0) {
4747
return(object)
4848
}
4949
parsed_code <- parse(text = code, keep.source = TRUE)

R/qenv-within.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#' Evaluate code in `qenv`
2-
#'
3-
#' @description Convenience method that wraps [eval_code()] to provide a simplified way of passing expression.
4-
#'
2+
#' @details
3+
#' `within()` is a convenience method that wraps `eval_code` to provide a simplified way of passing expression.
54
#' `within` accepts only inline expressions (both simple and compound) and allows to substitute `expr`
65
#' with `...` named argument values.
76
#'

man/within.qenv.Rd

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)