Skip to content

Commit

Permalink
more thorough explanation of input control inference
Browse files Browse the repository at this point in the history
  • Loading branch information
aronatkins committed Sep 13, 2024
1 parent 2d4724c commit d23ff28
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,25 @@ rmarkdown 2.29

- `find_external_resources()` now correctly detects knitr child document provided with option like `child = c("child.Rmd")` (thanks, @rempsyc, #2574).

- A parameter allowing multiple selections uses a select input control by default regardless of the number of choices.
- `knit_params_ask()` uses a `select` input for parameters which allow multiple selected values. Previously, a `radio` input was incorrectly used when the parameter had a small number of choices.

```yaml
params:
primaries:
choices: ["red", "yellow", "blue"]
multiple: true
```
When `multiple` is not enabled, parameter configuration still uses `radio` when there are fewer than five choices.

The `input` parameter field can still be used to force the configuration control.

```yaml
params:
grade:
input: radio
choices: ["A", "B", "C", "D", "F"]
```


rmarkdown 2.28
Expand Down

0 comments on commit d23ff28

Please sign in to comment.