Skip to content

Commit 8b7c89a

Browse files
jennybchadley
authored andcommitted
Set an explicit default width of 100% for README figs (#102)
Meant to combat figs that run off the page for README.html that CRAN creates and hosts. Suggests the use of, e.g., ```{r echo = FALSE} knitr::include_graphics("man/figures/i-already-exist.png") ``` for pre-made figs.
1 parent d841535 commit 8b7c89a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inst/templates/omni-README

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ output: github_document
99
knitr::opts_chunk$set(
1010
collapse = TRUE,
1111
comment = "#>",
12-
fig.path = "man/figures/README-"
12+
fig.path = "man/figures/README-",
13+
out.width = "100%",
1314
)
1415
```
1516
{{/Rmd}}

0 commit comments

Comments
 (0)