Skip to content

Commit

Permalink
Fix linting CI (#21)
Browse files Browse the repository at this point in the history
* Update renv

* Fix linting action; load package first

* Ignore `dev/` folder for renv
  • Loading branch information
milanmlft authored Aug 14, 2024
1 parent ce78099 commit 01420e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 83 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:
shell: Rscript {0}

- name: Lint
run: lintr::lint_package()
run: |
pkgload::load_all()
lintr::lint_package()
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
1 change: 1 addition & 0 deletions .renvignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dev/
82 changes: 0 additions & 82 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -99,28 +99,6 @@
],
"Hash": "cad6cf7f1d5f6e906700b9d3e718c796"
},
"attachment": {
"Package": "attachment",
"Version": "0.4.2",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"cli",
"desc",
"glue",
"knitr",
"magrittr",
"rmarkdown",
"roxygen2",
"stats",
"stringr",
"utils",
"withr",
"yaml"
],
"Hash": "6fb32c60d80a143293aabd0f2aa80597"
},
"attempt": {
"Package": "attempt",
"Version": "0.3.1",
Expand Down Expand Up @@ -658,21 +636,6 @@
],
"Hash": "d55aa087c47a63ead0f6fc10f8fa1ee0"
},
"httr": {
"Package": "httr",
"Version": "1.4.7",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"R6",
"curl",
"jsonlite",
"mime",
"openssl"
],
"Hash": "ac107251d9d9fd72f0ca8049988f1d7f"
},
"httr2": {
"Package": "httr2",
"Version": "1.0.2",
Expand Down Expand Up @@ -1139,13 +1102,6 @@
],
"Hash": "8f25ebe2ec38b1f2aef3b0d2ef76f6c4"
},
"rematch": {
"Package": "rematch",
"Version": "2.0.0",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "cbff1b666c6fa6d21202f07e2318d4f1"
},
"rematch2": {
"Package": "rematch2",
"Version": "2.1.2",
Expand Down Expand Up @@ -1180,32 +1136,6 @@
],
"Hash": "397b7b2a265bc5a7a06852524dabae20"
},
"rhub": {
"Package": "rhub",
"Version": "2.0.0",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"R6",
"callr",
"cli",
"curl",
"desc",
"gert",
"gitcreds",
"glue",
"jsonlite",
"pkgbuild",
"processx",
"rappdirs",
"rematch",
"rprojroot",
"utils",
"whoami"
],
"Hash": "403efdc0d221efb38e2eccdfdc5f4b25"
},
"rlang": {
"Package": "rlang",
"Version": "1.1.4",
Expand Down Expand Up @@ -1622,18 +1552,6 @@
"Repository": "CRAN",
"Hash": "c6abfa47a46d281a7d5159d0a8891e88"
},
"whoami": {
"Package": "whoami",
"Version": "1.3.0",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"httr",
"jsonlite",
"utils"
],
"Hash": "ef0f4d9b8f2cc2ebeccae1d725b8a023"
},
"withr": {
"Package": "withr",
"Version": "3.0.1",
Expand Down

0 comments on commit 01420e2

Please sign in to comment.