Skip to content

Commit

Permalink
Fix a typo in type-size.Rmd (#1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenguoerbian authored Oct 10, 2023
1 parent e16c2be commit 883737a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/type-size.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ vec_size_common(integer(), 1)

vctrs obeys a stricter set of recycling rules than base R. Vectors of size 1 are recycled to any other size. All other size combinations will generate an error. This strictness prevents common mistakes like `dest == c("IAH", "HOU"))`, at the cost of occasionally requiring an explicit calls to `rep()`.

```{r, echo = FALSE, fig.cap="Summary of vctrs recycling rules. X indicates n error"}
```{r, echo = FALSE, fig.cap="Summary of vctrs recycling rules. X indicates an error"}
knitr::include_graphics("../man/figures/sizes-recycling.png", dpi = 300)
```

Expand Down

0 comments on commit 883737a

Please sign in to comment.