Skip to content

Commit

Permalink
remove redundant files (#2)
Browse files Browse the repository at this point in the history
* remove redundant files

* check for link rot
  • Loading branch information
IndrajeetPatil authored Sep 24, 2023
1 parent 79d91d8 commit 39bb857
Show file tree
Hide file tree
Showing 169 changed files with 54 additions and 33,393 deletions.
Binary file added .DS_Store
Binary file not shown.
5 changes: 2 additions & 3 deletions .github/workflows/bookdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/check-link-rot.yaml
Original file line number Diff line number Diff line change
@@ -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}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ vignettes/*.pdf
.Renviron

rsconnect
.github/.DS_Store
Binary file removed Advanced-R-exercises.rds
Binary file not shown.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
142 changes: 0 additions & 142 deletions _book/404.html

This file was deleted.

3 changes: 0 additions & 3 deletions _book/Big-picture.md

This file was deleted.

Loading

0 comments on commit 39bb857

Please sign in to comment.