Skip to content

Commit

Permalink
docs(README): prefer flextable() to as_flextable()
Browse files Browse the repository at this point in the history
  • Loading branch information
atusy committed Mar 31, 2024
1 parent 30d5d70 commit f7eb6d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ data.frame(
z = c("***~ft~^Extra^** is*", "*Cool*"),
stringsAsFactors = FALSE
) %>%
as_flextable() %>%
flextable() %>%
colformat_md()
```

Expand All @@ -81,7 +81,7 @@ data.frame(
```{r span-header, render = render_html}
iris %>%
head() %>%
as_flextable() %>%
flextable() %>%
span_header()
```

Expand All @@ -92,5 +92,5 @@ library(dplyr, warn.conflicts = FALSE)
iris %>%
group_by(Species) %>%
slice(1:2) %>%
as_flextable()
flextable()
```
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ data.frame(
z = c("***~ft~^Extra^** is*", "*Cool*"),
stringsAsFactors = FALSE
) %>%
as_flextable() %>%
flextable() %>%
colformat_md()
```

Expand All @@ -58,7 +58,7 @@ data.frame(
``` r
iris %>%
head %>%
as_flextable() %>%
flextable() %>%
span_header()
```

Expand All @@ -71,7 +71,7 @@ library(dplyr, warn.conflicts = FALSE)
iris %>%
group_by(Species) %>%
slice(1:2) %>%
as_flextable()
flextable()
```

<img src="man/figures/group-rows-1.png" width="100%" />

0 comments on commit f7eb6d2

Please sign in to comment.