Skip to content

Commit

Permalink
simplify separate biblio examples [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Pakillo committed Feb 10, 2025
1 parent fac9918 commit c29d460
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 45 deletions.
Binary file not shown.
29 changes: 4 additions & 25 deletions Rmd_Quarto/separate_bibliographies/grateful-Quarto-separatebib.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,25 @@ filters:
bibliography:
main: main-refs.bib
software: grateful-refs.bib
validate-yaml: false # to overcome this issue https://github.com/pandoc-ext/multibib/issues/1
validate-yaml: false
citeproc: false
---

Here we cite a paper [@smith_software_2016].


Load packages

```{r}
#| message: false
library(dplyr)
library(ggplot2)
library(visreg)
```

Run some analysis
Now we cite R packages:

```{r}
iris |>
group_by(Species) |>
summarise(mean(Petal.Length))
ggplot(iris) +
geom_jitter(aes(Species, Petal.Length, colour = Species))
model <- lm(Petal.Length ~ Species, data = iris)
visreg(model)
library("ggplot2")
library("visreg")
```


Now we cite R packages:

```{r}
#| echo: false
grateful::cite_packages(output = "paragraph", pkgs = "Session", out.dir = ".")
```



# References

::: {#refs-main}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,13 @@ if (!file.exists("multibib.lua")) {

Here we cite a paper [@smith_software_2016].

Load packages

```{r message=FALSE}
library(dplyr)
library(ggplot2)
library(visreg)
```

Run some analysis
Now we cite R packages:

```{r}
iris |>
group_by(Species) |>
summarise(mean(Petal.Length))
ggplot(iris) +
geom_jitter(aes(Species, Petal.Length, colour = Species))
model <- lm(Petal.Length ~ Species, data = iris)
visreg(model)
library("ggplot2")
library("visreg")
```

Now we cite R packages:

```{r echo=FALSE}
grateful::cite_packages(output = "paragraph", pkgs = "Session", out.dir = ".")
```
Expand Down
Binary file not shown.

0 comments on commit c29d460

Please sign in to comment.