Skip to content

Commit

Permalink
Update README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgallou committed Oct 23, 2024
1 parent 2b8249b commit afd55ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ template <- pakret:::dedent('
library(pakret)
```
%s
We used `r pkrt("foo")` to analyse the data.
We used `r pkrt("foo")` to extract the data.
Figures were created using `r pkrt("bar")`.
Analyses were performed using `r pkrt("bar")`.
## References
')
Expand Down Expand Up @@ -102,7 +102,7 @@ template <- pakret:::dedent('
library(pakret)
```
%s
We analyse the data using the following packages: `r pkrt_list("foo", "bar")`.
We used the following packages: `r pkrt_list("foo", "bar")`.
## References
')
Expand Down
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ document:
library(pakret)
```

We used `r pkrt("foo")` to analyse the data.
We used `r pkrt("foo")` to extract the data.

Figures were created using `r pkrt("bar")`.
Analyses were performed using `r pkrt("bar")`.

## References

Expand All @@ -58,10 +58,10 @@ pakret handles everything for you.
Here’s the markdown output produced by the document above:

We used the ‘foo’ package version 1.0.0 (Fastandfurius, Clausus, and
Lastopus 2020) to analyse the data.
Lastopus 2020) to extract the data.

Figures were created using the ‘bar’ package version 0.2.0 (Itisalapsus
2024).
Analyses were performed using the ‘bar’ package version 0.2.0
(Itisalapsus 2024).

## References

Expand All @@ -81,15 +81,14 @@ It’s also possible to cite a collection of packages with `pkrt_list()`:
library(pakret)
```

We analyse the data using the following packages: `r pkrt_list("foo", "bar")`.
We used the following packages: `r pkrt_list("foo", "bar")`.

## References

<!-- separator -->

We analyse the data using the following packages: ‘foo’ v. 1.0.0
(Fastandfurius, Clausus, and Lastopus 2020), ‘bar’ v. 0.2.0 (Itisalapsus
2024).
We used the following packages: ‘foo’ v. 1.0.0 (Fastandfurius, Clausus,
and Lastopus 2020), ‘bar’ v. 0.2.0 (Itisalapsus 2024).

## References

Expand Down

0 comments on commit afd55ee

Please sign in to comment.