Skip to content

Commit

Permalink
Switch to tidyverse versioning/news conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed May 14, 2024
1 parent 362708f commit f9b7e6a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 69 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Package
Package: evaluate
Title: Parsing and Evaluation Tools that Provide More Details than the
Default
Version: 0.23.1
Version: 0.23.0.9000
Authors@R: c(
person("Hadley", "Wickham", , "[email protected]", role = c("aut", "cre")),
person("Yihui", "Xie", role = "aut",
Expand Down
102 changes: 34 additions & 68 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,153 +1,127 @@
Version 0.24
================================================================================
# evaluate (development version)


Version 0.23
================================================================================
# Version 0.23

- Prevent existing plots from leaking into `evaluate()` results (thanks, @dmurdoch, yihui/knitr#2297).

- If the environment variable `R_EVALUATE_BYPASS_MESSAGES` is set to true, the arguments `keep_message` and `keep_warning` of `evaluate()` will be set to `NA`, regardless of user input, which means messages and warnings will not be captured by `evaluate()`. This provides a possibility to force logging messages and warnings (thanks, @slodge, yihui/yihui.org#1458).

Version 0.22
================================================================================
# Version 0.22

- Fixed a problem in the internal function `plot_calls()` that made the examples of `recordGraphics` fail to run on its help page (thanks, Kurt Hornik).

Version 0.21
================================================================================
# Version 0.21

- `evaluate()` gains `log_echo` and `log_warning` arguments. When set to `TRUE`
these cause code and warnings (respectively) to be immediately emitted to
`stderr()`. This is useful for logging in unattended environments (#118).

- Improved the error message when users accidentally called `closeAllConnections()` (thanks, @guslipkin, quarto-dev/quarto-cli#5214).

Version 0.20
================================================================================
# Version 0.20

- The arguments `keep_message` and `keep_warning` of `evaluate()` can take the value `NA` now, which means `evaluate()` will not capture the messages and they will be sent to the console. This is equivalent to the `FALSE` value before v0.19 (thanks, @gadenbuie, https://github.com/yihui/yihui.org/discussions/1458).

Version 0.19
================================================================================
# Version 0.19

- In `evaluate()`, `keep_message` and `keep_warning` will completely drop messages and warnings, respectively, when their values are `FALSE`. Previously messages would still be emitted (to the console) even if they take `FALSE` values.

- Fixed the bug that `parse_all()` fails with line directives (thanks, @ArcadeAntics, #114).

Version 0.18
================================================================================
# Version 0.18

- Fixed tests that were still using the deprecated `ggplot2::qplot()`.

Version 0.17
================================================================================
# Version 0.17

- Adapted a unit test to the next version of **ggplot2** (thanks, @thomasp85, #113).

Version 0.16
================================================================================
# Version 0.16

- Fixed a bug that an empty **ggplot2** plot could be recorded and incorrectly saved (thanks, @sjspielman, rstudio/rmarkdown#2363).

Version 0.15
================================================================================
# Version 0.15

- `new_output_handler()` gains a `calling_handlers` argument. These are passed to `withCallingHandlers()` before `evaluate()` captures any conditions.

- Fixed #106: do not assume that `is.atomic(NULL)` returns `TRUE` (thanks, @mmaechler).

Version 0.14
================================================================================
# Version 0.14

- The hooks `persp`, `before.plot.new`, and `before.grid.newpage` set by users will be respected throughout the R session (thanks, @KKPMW, #96).

Version 0.13
================================================================================
# Version 0.13

- Errors generated by try() are now part of the output (for R >= 3.4). To achieve this, the try.outFile option is set for the duration of all evaluations (thanks, @krlmlr, #91)

Version 0.12
================================================================================
# Version 0.12

- Removed the stringr dependency (thanks, @mllg, #90).

Version 0.11
================================================================================
# Version 0.11

- Fix for regression introduced in 0.10.1 in parse_all.call() (fixes #77)

- evaluate() now respects options(warn >= 2); all warnings are turned into errors (#81)

Version 0.10.1
================================================================================
# Version 0.10.1

- Added parse_all.call() method to use the original source for evaluating call objects (because base::deparse() breaks non-ascii source code) (fixes #74)

Version 0.10
================================================================================
# Version 0.10

- Added option for the evaluate function to include timing information of ran commands. This information will be subsequently rendered by the replay. Example usage: evaluate::replay(evaluate::evaluate('Sys.sleep(1)', include_timing = TRUE))

- Added a new function `flush_console()` to emulate `flush.console()` in `evaluate()` (#61).

- Added a `inject_funs()` function to create functions in the environment passed to the `envir` argument of `evaluate()`.

Version 0.9
================================================================================
# Version 0.9

- Added an argument `allow_error` to `parse_all()` to allow syntactical errors in R source code when `allow_error = TRUE`; this means `evaluate(stop_on_error = 0 or 1)` will no longer stop on syntactical errors but returns a list of source code and the error object instead. This can be useful to show syntactical errors for pedagogical purposes.

Version 0.8.3
================================================================================
# Version 0.8.3

- Added an argument `filename` to evaluate() and parse_all() (thanks, @flying-sheep, #58).

Version 0.8
================================================================================
# Version 0.8

- Changed package license to MIT.

Version 0.7.2
================================================================================
# Version 0.7.2

- replay() fails to replay certain objects such as NULL (#53).

Version 0.7
================================================================================
# Version 0.7

- R 3.0.2 is the minimal required version for this package now.

Version 0.6
================================================================================
# Version 0.6

- Plots are no longer recorded when the current graphical device has been changed, which may introduce issues like yihui/knitr#824.

- `parse_all()` can parse R code that contains multibyte characters correctly now (#49, yihui/knitr#988)

Version 0.5.5
================================================================================
# Version 0.5.5

- Actually use the `text` and `graphics` in `new_output_handler`

- Multiple expressions separated by `;` on the same line can be printed as expected when the result returned is visible, e.g. both `x` and `y` will be printed when the source code is `x; y`. In previous versions, only `y` is printed. (thanks, Bill Venables)

Version 0.5.3
================================================================================
# Version 0.5.3

## BUG FIXES

- fixed the bug reported at https://github.com/yihui/knitr/issues/722 (repeatedly knitting the same code results in plots being omitted randomly) (thanks, Simon Urbanek)

Version 0.5.1
================================================================================
# Version 0.5.1

## BUG FIXES

- under R 2.15.x, evaluate() was unable to filter out the plots triggered by clip() (thanks, Uwe Ligges)

Version 0.5
================================================================================
# Version 0.5

## NEW FEATURES

Expand All @@ -167,8 +141,7 @@ Version 0.5

- the 'value' handler in new_output_handler() may take an additional argument that means if the value is visible or not; this makes it possible to save the invisible values as well (#41, thanks, Joroen Ooms)

Version 0.4.7
================================================================================
# Version 0.4.7

## NEW FEATURES

Expand All @@ -180,8 +153,7 @@ Version 0.4.7

- fixed yihui/knitr#582: evaluate() misclassified some plot changes as "par changes" and removed some plots when it should not; now it is better at identifying plot changes dur to par() (thanks, Keith Twombley)

Version 0.4.4
================================================================================
# Version 0.4.4

## BUG FIXES

Expand All @@ -199,8 +171,7 @@ Version 0.4.4

- Yihui Xie is the new maintainer of this package now

Version 0.4.3
================================================================================
# Version 0.4.3

## NEW FEATURES

Expand All @@ -220,32 +191,27 @@ Version 0.4.3

- use `show` to display S4 objects.

Version 0.4.2
================================================================================
# Version 0.4.2

- replace deprecated `.Internal(eval.with.vis)` with correct `withVisible`

- `evaluate` gains `debug` argument

Version 0.4.1
================================================================================
# Version 0.4.1

- use `test_package` to avoid problems with latest version of `testthat`

Version 0.4
================================================================================
# Version 0.4

- Use plot hooks to capture multiple plots created in a loop or within a function. (Contributed by Yihui Xie)

Version 0.3
================================================================================
# Version 0.3

- Import `stringr` instead of depending on it.

- Test plot recording only in the presence of interactive devices.

Version 0.2
================================================================================
# Version 0.2

- try_capture_stack and create_traceback do a much better job of removing infrastructure calls from the captured traceback

Expand Down

0 comments on commit f9b7e6a

Please sign in to comment.