You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/create_article.Rmd
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ The `create_article()` function will create the following files and folders:
38
38
39
39
The `.tex`, and `.sty` files make sure all the *R Journal* articles follow the same latex and reference style and should not be modified unless there is a strong reason to do so.
40
40
41
-
The `name` argument changes the name of the main R Markdown document, for example, if you wish to use `quokka-bilby` as the file name instead of `article`, create the article with:
41
+
The `name` argument changes the name of the main R Markdown document, for example, if you wish to use `quokka-bilby` as the file name instead of `test`, create the article with:
42
42
43
43
```{r eval = FALSE}
44
44
create_article(name = "quokka-bilby")
@@ -48,7 +48,7 @@ Please ensure that you stick to this folder structure when working with an R Jou
48
48
49
49
## Your first knit
50
50
51
-
To knit the `Rmd` file, you can use either through the RStudio `knit` button, or type the following command in the R console:
51
+
To knit the `Rmd` file, you can use either the RStudio `knit` button, or type the following command in the R console:
Copy file name to clipboardExpand all lines: vignettes/format-details.Rmd
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,8 @@ This has these components:
32
32
```
33
33
output:
34
34
rjtools::rjournal_article
35
+
bibliography: RJreferences.bib
35
36
```
36
-
-`bibliography: RJreferences.bib`
37
37
38
38
# Figures
39
39
@@ -48,7 +48,7 @@ Of course, if only a static plot is to be rendered in both outputs, a single cod
48
48
For a static graph, use `\@ref(fig:penguins)` for in-text reference and your code chunk should look something like this:
49
49
50
50
````markdown
51
-
`r ''````{r penguins, fig.cap="This is the figure caption"}
51
+
`r ''````{r penguins, fig.cap="This is the figure caption."}
52
52
penguins %>%
53
53
ggplot(aes(x = flipper_length_mm,
54
54
y = body_mass_g,
@@ -84,7 +84,7 @@ plotly::ggplotly(p1)
84
84
85
85
Notice here you need `eval=knitr::is_html_output()` and `eval=knitr::is_latex_output()` to make sure that the pdf output only evaluates the first chunk and the html output only evaluates the second.
86
86
87
-
For in-text citation, you will something like this:
87
+
For in-text citation, you will need something like this:
Sizing these figures should via the relevant arguments rather than the chunk options.
116
+
Sizing these figures should be done via the relevant arguments rather than the chunk options.
117
117
118
118
## Captions with special formatting
119
119
@@ -188,7 +188,7 @@ Both equations will be numbered, and referenced with `\@ref(eq:parityLoss2)`. S
188
188
189
189
# Citations
190
190
191
-
The citation style will be added during the building process and you can find the csl file [here](https://github.com/rjournal/rjtools/blob/main/inst/rjournal.csl). This style adopts a "capitalize-first" text case on title, which means it will capitalise the first world, including the one after the colon, and use lowercase for the rest. If you would like to preserve the text case of the title in the reference, wrap the word with curly braces. A common example of this is to preserve the lowercase R package name:
191
+
The citation style will be added during the building process and you can find the csl file [here](https://github.com/rjournal/rjtools/blob/main/inst/rjournal.csl). This style adopts a "capitalize-first" text case on title, which means it will capitalise the first word, including the one after the colon, and use lowercase for the rest. If you would like to preserve the text case of the title in the reference, wrap the word with curly braces. A common example of this is to preserve the lowercase R package name:
0 commit comments