Skip to content

Commit

Permalink
add creation dates
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed Sep 18, 2023
1 parent 7a75b0e commit c6ff549
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions datacarpentry/ecology-workshop.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ idx[heads] <- purrr::map_chr(idx[heads], fix_table_head)
writeLines(idx, fs::path(new, "index.md"))


sandpaper::set_config(
c("created" = "2015-12-12"),
path = new,
write = TRUE
)

to_find <- paste0("$(find ", new, "/ -name '*md')")
system2("sed", c("-i -r -e", "'s/[^a-z] solution/: spoiler/g'", to_find))
system2("sed", c("-i -r -e", "'s_https://example.com/FIXME_https://github.com/datacarpentry/ecology-workshop_g'", fs::path(new, "CONTRIBUTING.md")))
5 changes: 5 additions & 0 deletions datacarpentry/genomics-workshop.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ fix_table_head <- function(x) {
heads <- grepl("| ---", idx, fixed = TRUE)
idx[heads] <- purrr::map_chr(idx[heads], fix_table_head)
writeLines(idx, fs::path(new, "index.md"))
sandpaper::set_config(
c("created" = "2015-06-03"),
path = new,
write = TRUE
)

to_find <- paste0("$(find ", new, "/ -name '*md')")
system2("sed", c("-i -r -e", "'s/[^a-z] solution/: spoiler/g'", to_find))
Expand Down
5 changes: 5 additions & 0 deletions datacarpentry/geospatial-workshop.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ fix_table_head <- function(x) {
heads <- grepl("| ---", idx, fixed = TRUE)
idx[heads] <- purrr::map_chr(idx[heads], fix_table_head)
writeLines(idx, fs::path(new, "index.md"))
sandpaper::set_config(
c("created" = "2018-03-06"),
path = new,
write = TRUE
)

to_find <- paste0("$(find ", new, "/ -name '*md')")
system2("sed", c("-i -r -e", "'s/[^a-z] solution/: spoiler/g'", to_find))
Expand Down
5 changes: 5 additions & 0 deletions datacarpentry/socialsci-workshop.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ fix_table_head <- function(x) {
heads <- grepl("| ---", idx, fixed = TRUE)
idx[heads] <- purrr::map_chr(idx[heads], fix_table_head)
writeLines(idx, fs::path(new, "index.md"))
sandpaper::set_config(
c("created" = "2017-05-25"),
path = new,
write = TRUE
)

to_find <- paste0("$(find ", new, "/ -name '*md')")
system2("sed", c("-i -r -e", "'s/[^a-z] solution/: spoiler/g'", to_find))
Expand Down
5 changes: 5 additions & 0 deletions librarycarpentry/lc-overview.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ fix_table_head <- function(x) {
heads <- grepl("| ---", idx, fixed = TRUE)
idx[heads] <- purrr::map_chr(idx[heads], fix_table_head)
writeLines(idx, fs::path(new, "index.md"))
sandpaper::set_config(
c("created" = "2018-05-29"),
path = new,
write = TRUE
)

to_find <- paste0("$(find ", new, "/ -name '*md')")
system2("sed", c("-i -r -e", "'s/[^a-z] solution/: spoiler/g'", to_find))
Expand Down

0 comments on commit c6ff549

Please sign in to comment.