Skip to content

Commit 10b69a4

Browse files
authored
Fixed text for links (#161)
1 parent 3ecfc40 commit 10b69a4

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

posts/2023-10-30_floating_point/appendix.R

+14-13
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,18 @@ insert_source <- function(repo_spec, name,
1515
collection = "posts",
1616
branch = "main",
1717
host = "https://github.com",
18-
text = "Session info",
18+
text = "Source",
1919
file_name) {
20-
path <- "https://pharmaverse.github.io/blog/session_info.html"
20+
path <- paste(
21+
host,
22+
repo_spec,
23+
"tree",
24+
branch,
25+
collection,
26+
name,
27+
file_name,
28+
sep = "/"
29+
)
2130
return(markdown_link(text, path))
2231
}
2332

@@ -31,17 +40,9 @@ insert_lockfile <- function(repo_spec, name,
3140
collection = "posts",
3241
branch = "main",
3342
host = "https://github.com",
34-
text = "R environment") {
35-
path <- paste(
36-
host,
37-
repo_spec,
38-
"tree",
39-
branch,
40-
collection,
41-
name,
42-
"session_info.txt",
43-
sep = "/"
44-
)
43+
text = "Session info") {
44+
path <- path <- "https://pharmaverse.github.io/blog/session_info.html"
45+
4546
return(markdown_link(text, path))
4647
}
4748

0 commit comments

Comments
 (0)