From 0f10196b15ccb777f61ada1c6c7046f0308cac1f Mon Sep 17 00:00:00 2001 From: yjunechoe Date: Tue, 15 Oct 2024 08:42:54 -0400 Subject: [PATCH] add news --- NEWS.md | 6 ++++++ docs/news/index.html | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index f14c5f0..22c6603 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,11 @@ # ggtrace 0.7.x +- Streamlined the behavior of `ggtrace(use_names)` for assigning names to the tracedump, where: + + - If a list of expression is provided in `trace_exprs`, uses the names of that list if `TRUE`, and uses deparsed expressions from the method steps as names if `FALSE`. + + - If `trace_exprs` is empty, uses deparsed expressions from the method steps as names if `TRUE`, and returns unnamed output if `FALSE`. + ## ggtrace 0.7.3 - New special value `ggtrace(trace_steps = "all")` which evaluates to all steps in the method body. diff --git a/docs/news/index.html b/docs/news/index.html index 3364f8d..4ec728f 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -42,7 +42,12 @@

ggtrace 0.7.x

-
+
  • +

    Streamlined the behavior of ggtrace(use_names) for assigning names to the tracedump, where:

    +
    • If a list of expression is provided in trace_exprs, uses the names of that list if TRUE, and uses deparsed expressions from the method steps as names if FALSE.

    • +
    • If trace_exprs is empty, uses deparsed expressions from the method steps as names if TRUE, and returns unnamed output if FALSE.

    • +
  • +

ggtrace 0.7.3

  • New special value ggtrace(trace_steps = "all") which evaluates to all steps in the method body.

  • Bug fix in the default behavior of ggtrace(trace_exprs) doubly-evaluating an existing step from the method body, which sometimes caused unexpected side effects. This behavior is now prevented by cloning the method environment in such cases.