Skip to content

Commit

Permalink
try pkg() in index.qmd
Browse files Browse the repository at this point in the history
  • Loading branch information
friendly committed Oct 10, 2024
1 parent d2b3a2d commit a2caf71
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ The following typographic conventions are used in this book:

* _italic_ : indicates terms to be _emphasized_ or defined in the text, ...

* **bold** : is used for names of R packages
* **bold** : is used for names of R packages.
[Or, better yet: **`bold monospace`**.
I can now use inline 'pkg("lattice")' e.g., `r pkg("lattice")`, or also with a citation,
`pkg("lattice", cite=TRUE)` -> `r pkg("lattice", cite=TRUE)`

* `fixed-width` : is used in program listings as well as in text to refer to variable and function names, R statement elements and keywords.

* R code in program listings and output is presented in `monospaced (typewriter)` font,
[`fira mono`](https://fonts.google.com/specimen/Fira+Mono)

* _`fixed-width italic`_ : isn't used yet, but probably should be.

For R functions in packages, we use the notation `package::function()`, for example: `car::Anova()` to identify where those functions are defined
Expand Down

0 comments on commit a2caf71

Please sign in to comment.