Skip to content

Commit

Permalink
Fix README.md and .post-render.R
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvartan committed Dec 12, 2024
1 parent 89be2d9 commit f0dbf35
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
^LICENSE\.md$
^man-roxygen$
^pkgdown$
^R/\.post-render\.R$
^README\.qmd$
21 changes: 15 additions & 6 deletions R/_post-render.R → R/.post-render.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# library(beepr, quietly = TRUE)
# library(groomr, quietly = TRUE)
# library(here, quietly = TRUE)
# library(readr, quietly = TRUE)
# library(stringr, quietly = TRUE)
# library(beepr)
# library(cffr)
# library(codemetar)
# library(groomr) # https://github.com/danielvartan/groomr
# library(here)
# library(readr)
# library(rutils) # https://github.com/danielvartan/rutils
# library(stringr)

# Remove empty lines from `README.md` -----

groomr::remove_blank_line_dups(here::here("README.md"))

# Update package versions in `DESCRIPTION` -----

rutils::update_pkg_versions()

# Update package year -----

files <- c(
Expand Down Expand Up @@ -35,4 +42,6 @@ codemetar::write_codemeta()

# Check if the script ran successfully -----

# beepr::beep(1)
beepr::beep(1)

Sys.sleep(3)
7 changes: 7 additions & 0 deletions README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
#| label: setup
#| include: false
library(beepr)
library(cffr)
library(codemetar)
library(groomr)
library(here)
library(readr)
library(rutils) # https://github.com/danielvartan/rutils
library(stringr)
```

# groomr
Expand Down
3 changes: 1 addition & 2 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
editor: source

project:
output-dir: "."
render: [README.qmd]
post-render: "R/_post-render.R"
post-render: "R/.post-render.R"

format: gfm

0 comments on commit f0dbf35

Please sign in to comment.