Skip to content

Commit 9ce552c

Browse files
committed
generate stats.json file
1 parent 9095eb0 commit 9ce552c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

R/register.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,16 @@ register_render <- function(register = read.csv("register.csv", as.is = TRUE),
210210
"Check date")],
211211
path = "docs/featured.json",
212212
pretty = TRUE)
213+
214+
jsonlite::write_json(list(
215+
source = "https://codecheck.org.uk/register/register.json",
216+
cert_count = nrow(register_table)
217+
# TODO count conferences, preprints,
218+
# journals, etc.
219+
),
220+
auto_unbox = TRUE,
221+
path = "docs/stats.json",
222+
pretty = TRUE)
213223
}
214224

215225
return(register_table)

0 commit comments

Comments
 (0)