Skip to content

Commit 1322add

Browse files
committed
CICD checks fixed
1 parent f5256bf commit 1322add

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

.github/workflows/publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
pharmaverseadam
4343
link
4444
sessioninfo
45+
roxygen2
4546
4647
4748
- name: Install tinytex

R/appendix.R

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
# markdown helpers --------------------------------------------------------
32

4-
markdown_appendix <- function (name, content) {
3+
markdown_appendix <- function(name, content) {
54
paste(paste("##", name, "{.appendix}"), " ", content, sep = "\n")
65
}
7-
markdown_link <- function (text, path) {
6+
markdown_link <- function(text, path) {
87
paste0("[", text, "](", path, ")")
98
}
109

@@ -58,7 +57,7 @@ insert_lockfile <- function(repo_spec, name,
5857

5958
# top level function ------------------------------------------------------
6059

61-
insert_appendix <- function (repo_spec, name, collection = "posts") {
60+
insert_appendix <- function(repo_spec, name, collection = "posts") {
6261
appendices <- paste(
6362
markdown_appendix(
6463
name = "Last updated",
@@ -70,7 +69,8 @@ insert_appendix <- function (repo_spec, name, collection = "posts") {
7069
content = paste(
7170
insert_source(repo_spec, name, collection),
7271
insert_lockfile(repo_spec, name, collection),
73-
sep = ", ")
72+
sep = ", "
73+
)
7474
),
7575
sep = "\n"
7676
)

index.qmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ post_redirects <- paste0("/", slugs, " ", "/posts/", posts)
3434
3535
# function to extract post categories from index.qmd files
3636
get_post_categories <- function(post) {
37-
file <- here::here("posts", post) |> list.files(pattern = ".qmd", full.names = TRUE)
37+
file <- here::here("posts", post) |> list.files(pattern = ".qmd", full.names = TRUE)
3838
if (!fs::file_exists(file)) {
3939
return(character(0))
4040
}

inst/WORDLIST.txt

+4
Original file line numberDiff line numberDiff line change
@@ -716,3 +716,7 @@ img
716716
src
717717
svg
718718
wikimedia
719+
de
720+
RightTool
721+
Rlogo
722+
sessioninfo

posts/2023-10-30_floating_point/floating_point.qmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ I.e. `.Machine$double.eps / 1.8` is still detectable, while `.Machine$double.eps
353353
source("appendix.R")
354354
insert_appendix(
355355
repo_spec = "pharmaverse/blog",
356-
name = long_slug,
356+
name = long_slug,
357357
# file_name should be the name of your file
358358
file_name = list.files() %>% stringr::str_subset(".qmd") %>% first()
359359
)

0 commit comments

Comments
 (0)