From 7898ae92bcd78b5b2f7c2a3384287e8e546fed9a Mon Sep 17 00:00:00 2001 From: "Matthew L. Fidler" Date: Tue, 5 Dec 2023 15:07:26 -0600 Subject: [PATCH] Add news about alignment --- NEWS.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/NEWS.md b/NEWS.md index f1e0fcde2..2b6947a23 100644 --- a/NEWS.md +++ b/NEWS.md @@ -150,6 +150,20 @@ mu-referencing style to run the optimization. be kept carrying more information with it (for example ordered factors, data frame columns with unit information, etc) +- Piping arguments `append` for `ini()` and `model()` have been + aligned to perform similarly. Therefore `ini(append=)` now can take + expressions instead of simply strings and `model(append=)` can also + take strings. Also model piping now can specify the integer line + number to be modified just like the `ini()` could. Also + `model(append=FALSE)` has been changed to `model(append=NULL)`. + While the behavior is the same when you don't specify the argument, + the behavior has changed to align with `ini()` when piping. Hence + `model(append=TRUE)` will append and `model(append=FALSE)` will now + pre-pend to the model. `model(append=NULL)` will modify lines like + the behavior of `ini(append=NULL)`. The default of `model(line)` + modifying a line in-place still applies. While this is a breaking + change, most code will perform the same. + ## Internal new features - Add `as.model()` for list expressions, which implies `model(ui) <-