Skip to content

Commit

Permalink
update pkg root paths (topepo#1227)
Browse files Browse the repository at this point in the history
* update pkg root paths

* try `local::.` modifier

* update local_system_requirements()

* more paths

* move/remove some config files
  • Loading branch information
topepo authored May 12, 2021
1 parent f70643f commit 8c1d401
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 278 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Install pak and query dependencies
run: |
install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/")
saveRDS(pak::pkg_deps("local::.", dependencies = TRUE), ".github/r-depends.rds")
saveRDS(pak::pkg_deps("local::./pkg/caret", dependencies = TRUE), ".github/r-depends.rds")
shell: Rscript {0}

- name: Restore R package cache
Expand All @@ -66,13 +66,13 @@ jobs:
- name: Install system dependencies
if: runner.os == 'Linux'
run: |
pak::local_system_requirements(execute = TRUE)
pak::local_system_requirements(root = "pkg/caret", execute = TRUE)
pak::pkg_system_requirements("rcmdcheck", execute = TRUE)
shell: Rscript {0}

- name: Install dependencies
run: |
pak::local_install_dev_deps(upgrade = TRUE)
pak::local_install_dev_deps(root = "pkg/caret", upgrade = TRUE)
pak::pkg_install("rcmdcheck")
shell: Rscript {0}

Expand All @@ -88,7 +88,7 @@ jobs:
_R_CHECK_CRAN_INCOMING_: false
run: |
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
rcmdcheck::rcmdcheck(path = "pkg/caret", args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
shell: Rscript {0}

- name: Show testthat output
Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/pr-commands.yaml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install pak and query dependencies
run: |
install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/")
saveRDS(pak::pkg_deps("local::.", dependencies = TRUE), ".github/r-depends.rds")
saveRDS(pak::pkg_deps("local::./pkg/caret", dependencies = TRUE), ".github/r-depends.rds")
shell: Rscript {0}

- name: Restore R package cache
Expand All @@ -41,16 +41,16 @@ jobs:
- name: Install system dependencies
if: runner.os == 'Linux'
run: |
pak::local_system_requirements(execute = TRUE)
pak::local_system_requirements(root = "pkg/caret", execute = TRUE)
pak::pkg_system_requirements("covr", execute = TRUE)
shell: Rscript {0}

- name: Install dependencies
run: |
pak::local_install_dev_deps(upgrade = TRUE)
pak::local_install_dev_deps(root = "pkg/caret", upgrade = TRUE)
pak::pkg_install("covr")
shell: Rscript {0}

- name: Test coverage
run: covr::codecov()
run: covr::codecov(path = "pkg/caret")
shell: Rscript {0}
File renamed without changes.
104 changes: 0 additions & 104 deletions pkg/caret/.github/workflows/R-CMD-check.yaml

This file was deleted.

55 changes: 0 additions & 55 deletions pkg/caret/.github/workflows/pr-commands.yaml

This file was deleted.

56 changes: 0 additions & 56 deletions pkg/caret/.github/workflows/test-coverage.yaml

This file was deleted.

0 comments on commit 8c1d401

Please sign in to comment.