-
Notifications
You must be signed in to change notification settings - Fork 1
/
ORG-README.qmd
62 lines (46 loc) · 1.57 KB
/
ORG-README.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
format: gfm
wrap: preserve
execute:
echo: false
warning: false
---
# Quarto Journal Templates
The `quarto-journals` organization collects a curated set of journal templates for Quarto.
Use a journal template with the command:
`quarto use template quarto-journals/<template-name>`
```{r}
#| message: false
library(gh)
library(purrr)
library(dplyr)
res <- gh::gh("/orgs/{org}/repos", org = "quarto-journals")
tab <- res |>
# remove non extension
discard(~ .x$name %in% c(".github", "article-format-template")) |>
# remove private
discard(~ .x$private) |>
map_df(~ tibble::tibble(
name = .x$name,
full_name = .x$full_name,
description = .x$description,
license = .x$license$name,
url = .x$html_url
))
tab <- tab |> mutate(
journal = gsub("^Quarto template for (?:the )?(.*)$", "\\1", description, perl = TRUE)
)
tab_formatted <- tab |>
arrange(name) |>
transmute(
'Journal / Publisher ' = journal,
'Name' = glue::glue("[{name}]({url})"),
'Install' = glue::glue("`quarto use template {full_name}`")
)
knitr::kable(tab_formatted)
```
### Using a Template
These templates require features in Quarto 1.2, so you will currently need [pre-release versions of Quarto](https://quarto.org/docs/download/prerelease.html).
### Creating a Template
Learn more about creating your own journal templates here: <https://quarto.org/docs/journals/>
An easy way to start is to use the quarto-journals Github repo template at <https://github.com/quarto-journals/article-format-template>.