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

WIP: Rename smooth_terms to additional_terms #53

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

richford
Copy link
Collaborator

Resolves #52

@richford richford requested a review from arokem June 27, 2023 20:40
@arokem
Copy link
Contributor

arokem commented Jun 27, 2023

Could you please add some tests?

@richford richford changed the title Rename smooth_terms to additional_terms WIP: Rename smooth_terms to additional_terms Jun 27, 2023
Copy link
Contributor

@arokem arokem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this PR is currently removing functionality introduced in #45, and I am not sure why.

@@ -99,48 +94,17 @@ build_formula <- function(target, covariates, smooth_terms = NULL, group_by = "g
#' k = "auto")
#' }
fit_gam <- function(df_tract,
target = NULL,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we do want to allow target to be NULL for the case that the user provides a formula.

This is the test that is currently failing on the CI.

method="fREML",
...) {

# Check that if formula is non-NULL, all the other formula-setting inputs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this code being removed? This code is here to deal with the two options: provide a formula, or let the code build the formula from the inputs. Unless I am missing something, I don't think that the current PR should be eliminating these options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename input smooth_terms to additional_terms
2 participants