From 880362bf22775f469a17340cd14b5d0a2aeb4fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Revilla?= Date: Fri, 16 Jan 2026 10:31:48 +0100 Subject: [PATCH 1/4] Increment version number to 0.7.1 --- DESCRIPTION | 2 +- NEWS.md | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 52ac15f3..9713609b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: teal.code Title: Code Storage and Execution Class for 'teal' Applications -Version: 0.7.0.9006 +Version: 0.7.1 Date: 2025-12-15 Authors@R: c( person("Dawid", "Kaledkowski", , "dawid.kaledkowski@roche.com", role = c("aut", "cre")), diff --git a/NEWS.md b/NEWS.md index ce8fde31..3f1e70ef 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,8 @@ -# teal.code 0.7.0.9006 +# teal.code 0.7.1 + +### Bug fixes + +* Fix a problem detecting dependencies when using subassignemnts reusing the same object (#276). # teal.code 0.7.0 From f8a01299c567a593d499d4148122f3f3bd09b823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Revilla?= Date: Fri, 16 Jan 2026 10:32:49 +0100 Subject: [PATCH 2/4] [skip vbump] Update docs (from roxygen2 warnings) --- R/qenv-within.R | 2 +- R/utils-get_code_dependency.R | 2 +- man/within.qenv.Rd | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/R/qenv-within.R b/R/qenv-within.R index 9e229d38..e98647d4 100644 --- a/R/qenv-within.R +++ b/R/qenv-within.R @@ -4,7 +4,7 @@ #' `within` accepts only inline expressions (both simple and compound) and allows to substitute `expr` #' with `...` named argument values. #' Functions that trigger side effects like `options` or `set.seed` can be linked to specific objects for further code retrieval (with `get_code`), but only through `eval_code` where code input as `character`. `within` works on `expressions` that do not preserve comments, hence you can not use `# @linksto` tag explained in `get_code`. -#' @alias within +#' @aliases within #' @section Using language objects with `within`: #' Passing language objects to `expr` is generally not intended but can be achieved with `do.call`. #' Only single `expression`s will work and substitution is not available. See examples. diff --git a/R/utils-get_code_dependency.R b/R/utils-get_code_dependency.R index 954448d3..4adea57d 100644 --- a/R/utils-get_code_dependency.R +++ b/R/utils-get_code_dependency.R @@ -365,7 +365,7 @@ move_functions_after_arrow <- function(ans, functions) { #' Static code analysis may be insufficient to determine which objects are created or modified by such a function call. #' The `@linksto` comment tag is introduced to mark a call as having a (side) effect on one or more objects. #' With this tag a complete object dependency structure can be established. -#' Read more about side effects and the usage of `@linksto` tag in [`get_code_dependencies()`] function. +#' Read more about side effects and the usage of `@linksto` tag in [`get_code()`] function. #' #' @param pd `data.frame`; #' one of the results of `utils::getParseData()` split into subsets representing individual calls; diff --git a/man/within.qenv.Rd b/man/within.qenv.Rd index 6a2b1937..86a15b94 100644 --- a/man/within.qenv.Rd +++ b/man/within.qenv.Rd @@ -2,6 +2,7 @@ % Please edit documentation in R/qenv-within.R \name{within.qenv} \alias{within.qenv} +\alias{within} \title{Evaluate code in \code{qenv}} \usage{ \method{within}{qenv}(data, expr, ...) From d8068fe335284789a3e2014293a35237fd599a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Revilla?= Date: Fri, 16 Jan 2026 10:38:20 +0100 Subject: [PATCH 3/4] Allow new word for NEWS --- inst/WORDLIST | 1 + 1 file changed, 1 insertion(+) diff --git a/inst/WORDLIST b/inst/WORDLIST index bfd17ef2..298d5707 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -2,3 +2,4 @@ Forkers Hoffmann funder qenv +subassignemnts From 308527e77fc4b9e2792bb0238d2d3807b729a0e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Revilla?= Date: Fri, 16 Jan 2026 10:48:58 +0100 Subject: [PATCH 4/4] Fix lint issues --- R/qenv-within.R | 5 ++++- man/within.qenv.Rd | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/R/qenv-within.R b/R/qenv-within.R index e98647d4..925535ed 100644 --- a/R/qenv-within.R +++ b/R/qenv-within.R @@ -3,7 +3,10 @@ #' `within()` is a convenience method that wraps `eval_code` to provide a simplified way of passing expression. #' `within` accepts only inline expressions (both simple and compound) and allows to substitute `expr` #' with `...` named argument values. -#' Functions that trigger side effects like `options` or `set.seed` can be linked to specific objects for further code retrieval (with `get_code`), but only through `eval_code` where code input as `character`. `within` works on `expressions` that do not preserve comments, hence you can not use `# @linksto` tag explained in `get_code`. +#' Functions that trigger side effects like `options` or `set.seed` can be +#' linked to specific objects for further code retrieval (with `get_code`), but +#' only through `eval_code` where code input as `character`. `within` works on +#' `expressions` that do not preserve comments, hence you can not use `# @linksto` tag explained in `get_code`. #' @aliases within #' @section Using language objects with `within`: #' Passing language objects to `expr` is generally not intended but can be achieved with `do.call`. diff --git a/man/within.qenv.Rd b/man/within.qenv.Rd index 86a15b94..eddb5de0 100644 --- a/man/within.qenv.Rd +++ b/man/within.qenv.Rd @@ -22,7 +22,10 @@ Evaluate code in \code{qenv} \code{within()} is a convenience method that wraps \code{eval_code} to provide a simplified way of passing expression. \code{within} accepts only inline expressions (both simple and compound) and allows to substitute \code{expr} with \code{...} named argument values. -Functions that trigger side effects like \code{options} or \code{set.seed} can be linked to specific objects for further code retrieval (with \code{get_code}), but only through \code{eval_code} where code input as \code{character}. \code{within} works on \code{expressions} that do not preserve comments, hence you can not use \verb{# @linksto} tag explained in \code{get_code}. +Functions that trigger side effects like \code{options} or \code{set.seed} can be +linked to specific objects for further code retrieval (with \code{get_code}), but +only through \code{eval_code} where code input as \code{character}. \code{within} works on +\code{expressions} that do not preserve comments, hence you can not use \verb{# @linksto} tag explained in \code{get_code}. } \section{Using language objects with \code{within}}{