Page not found -
-The page you requested cannot be found (perhaps it was moved or renamed).
-You may want to try searching to find the page's new location, or use -the table of contents to find the page you are looking for.
-diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..2d6d6748 Binary files /dev/null and b/.DS_Store differ diff --git a/.github/workflows/bookdown.yaml b/.github/workflows/bookdown.yaml index 30c0d5bf..49d727d3 100644 --- a/.github/workflows/bookdown.yaml +++ b/.github/workflows/bookdown.yaml @@ -16,11 +16,10 @@ name: bookdown jobs: bookdown: runs-on: ubuntu-latest - # Only restrict concurrency for non-PR jobs - concurrency: - group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} + env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/check-link-rot.yaml b/.github/workflows/check-link-rot.yaml new file mode 100644 index 00000000..5db14bd1 --- /dev/null +++ b/.github/workflows/check-link-rot.yaml @@ -0,0 +1,49 @@ +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + schedule: + # * is a special character in YAML so you have to quote this string + # Trigger once a week at 00:00 on Sunday + - cron: "0 0 * * SUN" + +name: check-link-rot + +jobs: + check-link-rot: + runs-on: ubuntu-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + R_KEEP_PKG_SOURCE: yes + steps: + - uses: actions/checkout@v4 + + - uses: r-lib/actions/setup-pandoc@v2 + with: + pandoc-version: "3.1.8" + + - uses: r-lib/actions/setup-r@v2 + with: + r-version: "devel" + http-user-agent: "release" + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + pak-version: devel + dependencies: '"hard"' + extra-packages: | + any::rcmdcheck + any::urlchecker + needs: check + + - name: Run URL checker + run: | + options(crayon.enabled = TRUE) + rotten_links <- urlchecker::url_check(progress = FALSE) + print(rotten_links) + if (length(rotten_links$URL) > 0L) { + cli::cli_abort("Some URLs are outdated and need to be updated.") + } + shell: Rscript {0} diff --git a/.gitignore b/.gitignore index 476486f6..986cfda8 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ vignettes/*.pdf .Renviron rsconnect +.github/.DS_Store diff --git a/Advanced-R-exercises.rds b/Advanced-R-exercises.rds deleted file mode 100644 index cf73753d..00000000 Binary files a/Advanced-R-exercises.rds and /dev/null differ diff --git a/DESCRIPTION b/DESCRIPTION index a4d51e24..d5c08d7b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -12,7 +12,8 @@ Description: This presentation summarizes my understanding of best practices in naming things for software development. This is not a package, and the DESCRIPTION file is included to make it easier to install required packages in GitHub action workflows. -URL: https://github.com/IndrajeetPatil/Advanced-R-exercises +URL: https://github.com/IndrajeetPatil/Advanced-R-exercises, + https://indrajeetpatil.github.io/Advanced-R-exercises/ BugReports: https://github.com/IndrajeetPatil/Advanced-R-exercises/issues Depends: R (>= 4.1.0) diff --git a/_book/404.html b/_book/404.html deleted file mode 100644 index c3f00d26..00000000 --- a/_book/404.html +++ /dev/null @@ -1,142 +0,0 @@ - - -
- - - -The page you requested cannot be found (perhaps it was moved or renamed).
-You may want to try searching to find the page's new location, or use -the table of contents to find the page you are looking for.
-