This is how package names are presented on the top left corner of the R help on your computer.
Like with ?sort
here:
Using it allows students to distinguish between normal text, package names and function names when your present it in your courses. See the difference by yourself, and choose your own way.
- Let me present you ggplot2. You can use ggplot to create a plot: gg. We also use here in here and glue in glue in the exercise.
- Let me present you {ggplot2}. You can use
ggplot()
to create a plot: gg
. We also use here()
in {here} and glue()
in {glue} in the exercise.
When you teach, you need to think about newcomers and give them some references, some guidance on what you are talking about. Because they discover so many concepts. For you, the difference between a package, a function, an object is clear. For them, this is totally new. If you have visual concepts to make them more easily identify things in your slides, it will be better for their understanding.
- package: {ggplot2}
- function:
ggplot()
- object:
gg
- directory: "results/"
You can decide your own way of presenting it.