Skip to content

Commit

Permalink
Figure mechanics for the DESCRIPTION chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Mar 29, 2023
1 parent 34cda25 commit 7f13b03
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions description.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,21 @@ Description: A system for 'declaratively' creating graphics,
and it takes care of the details.
```

A good title and description are important, especially if you plan to release your package to CRAN, because they appear on the CRAN download page as follows:
A good title and description are important, especially if you plan to release your package to CRAN, because they appear on the package's CRAN landing page as shown in @fig-cran-package-page:

<!-- TODO: I know my hacky diagram might need replacement, but at least it's more up-to-date. -->
<!-- Sara says: be sure there is a blank high res screenshot because prod will add text to the screenshot in the O'Reilly style. That blank screenshot is here as images/cran-package-ggplot2-clean.png. -->

```{r}
#| label: fig-cran-package-page
#| echo: false
#| out-width: ~
#| fig.cap: >
#| The CRAN page for ggplot2, highlighting Title and Description.
knitr::include_graphics("diagrams/cran-package-ggplot2.png")
#| How Title and Description appear on ggplot2's CRAN page.
#| fig.alt: >
#| A screenshot of the CRAN page for ggplot2, with two labelled boxes
#| indicating the text that comes from the Title and Description fields
#| in the DESCRIPTION file.
knitr::include_graphics("images/cran-package-ggplot2.png")
```

::: callout-warning
Expand Down
Binary file added images/cran-package-ggplot2-clean.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/cran-package-ggplot2.key
Binary file not shown.
File renamed without changes

0 comments on commit 7f13b03

Please sign in to comment.