Skip to content

Commit

Permalink
Rename format_for_return() -> new_RtGam()
Browse files Browse the repository at this point in the history
  • Loading branch information
zsusswein committed Aug 29, 2024
1 parent 6bfb09d commit eed7b48
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion R/RtGam.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ RtGam <- function(cases,
)
diagnostics <- calculate_diagnostics(fit)

RtGam_object <- format_for_return(
RtGam_object <- new_RtGam(
fit = fit,
df = df,
group = group,
Expand Down
16 changes: 8 additions & 8 deletions R/print.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#' Format the RtGam object for return from the main function/constructor
#' @noRd
format_for_return <- function(fit,
df,
group,
k,
m,
backend,
formula,
diagnostics) {
new_RtGam <- function(fit,
df,
group,
k,
m,
backend,
formula,
diagnostics) {
formatted <- list(
model = fit,
data = df,
Expand Down

0 comments on commit eed7b48

Please sign in to comment.