Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release version 1.4.8 #83

Merged
merged 8 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/auto-test-no-suggests-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.

name: Run R CMD check for no
name: Run R CMD check for strong dependencies only (nosuggests)

on: [pull_request, workflow_dispatch]

Expand Down Expand Up @@ -39,6 +39,7 @@ jobs:
any::knitr
any::rmarkdown
any::ggplot2
any::roxygen2
needs: check

- name: Create documentation
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: familiar
Title: End-to-End Automated Machine Learning and Model Evaluation
Version: 1.4.7
Version: 1.4.8
Authors@R: c(
person("Alex", "Zwanenburg",
email = "[email protected]",
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Version 1.4.8 (Valorous Viper)

## Bug fixes

- Adapted tests to work when packages are missing.

# Version 1.4.7 (Uncertain Unicorn)

## Bug fixes
Expand Down
27 changes: 27 additions & 0 deletions R/TestDataCreators.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
test_data_package_installed <- function(outcome_type) {
run_test <- TRUE

data_packages <- list(
"survival" = "survival",
"multinomial" = "datasets",
"binomial" = "MASS",
"continuous" = "Ecdat",
"count" = "MASS"
)

if (!is_package_installed(data_packages[[outcome_type]])) run_test <- FALSE

if (!run_test) {
rlang::inform(
message = paste0(
"Cannot run test because the ",
data_packages[[outcome_type]],
" package is not installed."),
class = "familiar_message_inform_no_test"
)
}

return(run_test)
}


test.create_good_data_set <- function(outcome_type, to_data_object=TRUE){

# Suppress NOTES due to non-standard evaluation in data.table
Expand Down
Loading
Loading