Skip to content

Commit

Permalink
build: add R dependency >= 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tripartio committed Feb 9, 2025
1 parent ce8c2d5 commit 800046a
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
.httr-oauth
.DS_Store
.quarto
autogam.Rproj
docs
CRAN-SUBMISSION
7 changes: 4 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ Authors@R:
Language: en-US
Description: This wrapper package for 'mgcv' makes it easier to create high-performing Generalized Additive Models (GAMs). With its central function autogam(), by entering just a dataset and the name of the outcome column as inputs, 'AutoGAM' tries to automate the procedure of configuring a highly accurate GAM which performs at reasonably high speed, even for large datasets.
License: MIT + file LICENSE
Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
Depends:
R (>= 4.1.0)
Imports:
ale,
cli,
dplyr,
mgcv,
Expand All @@ -24,5 +23,7 @@ Imports:
stats,
stringr,
univariateML
Suggests:
testthat (>= 3.0.0)
URL: https://github.com/tripartio/autogam, https://tripartio.github.io/autogam/
BugReports: https://github.com/tripartio/autogam/issues
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# autogam development version

* Created `autogam` S3 object with support for all `mgcv::gam` s3 methods. The `autogam` methods mostly call the `mgcv::gam` methods. For now, only the `print()` method is lightly modified to add performance measures.
* Update required R version to >= 4.1.0 (mainly because it uses the |> pipe).
* Create `autogam` S3 object with support for all `mgcv::gam` s3 methods. The `autogam` methods mostly call the `mgcv::gam` methods. For now, only the `print()` method is lightly modified to add performance measures.

# autogam 0.0.1

Expand Down
6 changes: 3 additions & 3 deletions R/unpackaged_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ validate <- function(..., msg = NULL)

# Validate the assertion itself--this is purely internal validation
if (length(res) != 1) {
cli_abort('ale:::validate: length of assertion is not 1')
cli_abort('length of assertion is not 1')
}
if (!is.logical(res)) {
cli_abort('ale:::validate: assertion must return a logical value')
cli_abort('assertion must return a logical value')
}
if (any(is.na(res))) {
cli_abort('ale:::validate: missing values present in assertion')
cli_abort('missing values present in assertion')
}

# On the first FALSE res, break out of the for loop
Expand Down
1 change: 1 addition & 0 deletions autogam.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: 0bad7fa3-2c58-4ac5-ac2b-c22f1b94df56

RestoreWorkspace: No
SaveWorkspace: No
Expand Down
5 changes: 5 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
AutoGAM
CMD
cr
datatypes
gam
Lifecycle
mgcv
staccuracy
tp
winsorized
26 changes: 26 additions & 0 deletions man/var_type.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 800046a

Please sign in to comment.