Skip to content

Commit

Permalink
Merge pull request #92 from russHyde/linting
Browse files Browse the repository at this point in the history
Linting
  • Loading branch information
russHyde authored Apr 3, 2024
2 parents 8dec1ae + 302cf66 commit 1191773
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .lintr
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ linters: linters_with_defaults(
exclusions: list(
"inst/extdata/duplicated.R",
"tests/testthat.R",
# ? should be able to exclude a directory in lintr
"tests/testthat/testdata/anRpackage/R/anRpackage-internal.R"
"tests/testthat/testdata"
)
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Update the CI workflows for pkgdown, test-coverage and R CMD check
* use lintr >= 3, and update .lintr config file
* Fixed linting across package
* lint the package in CI
* Convert default git branch to 'main' (#84, @russHyde)

Expand Down
9 changes: 5 additions & 4 deletions R/dups-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ as_dups <- function(x) {
if (methods::is(x, "dups")) {
return(x)
}
structure(
list(dups_df = x),
class = "dups"
)

dups <- list(dups_df = x)
class(dups) <- "dups"

dups
}

#' as.data.frame method for `dups` class
Expand Down

0 comments on commit 1191773

Please sign in to comment.