Skip to content

Don't use two attributes for same purpose - #690

Closed
strengejacke wants to merge 1 commit into
mainfrom
simplify_transform_arg
Closed

strengejacke wants to merge 1 commit into
mainfrom
simplify_transform_arg

Conversation

@strengejacke

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Existing consumers misinterpret the consolidated metadata, causing incorrect labels, suppressed plot overlays, and stale transformation attributes.

4 open issues
What changed in this PR

Consolidates transformation metadata into a single transform attribute across modelbased outputs.

Changes:

  • Removes duplicate transform_arg metadata.
  • Updates prediction metadata and footer lookup.
  • Increments the development version.
File Description
R/​table_footer.R Reads the consolidated transformation attribute.
R/​get_marginalmeans.R Consolidates means metadata and attribute documentation.
R/​get_marginalcontrasts.R Removes duplicate transformation metadata.
R/​estimate_predicted.R Preserves the original transformation argument in metadata.
DESCRIPTION Bumps version to 0.17.0.19.

Review effort: Balanced

Comment thread R/estimate_predicted.R
attributes(out) <- c(
attributes(out),
grid_specs[!names(grid_specs) %in% c(names(attributes(out)), "transform_arg")]
grid_specs[!names(grid_specs) %in% names(attributes(out))]
Comment thread R/get_marginalmeans.R
datagrid = datagrid,
transform = !is.null(transform),
transform_arg = transform_arg,
transform = transform_arg,
Comment thread R/get_marginalmeans.R
datagrid = datagrid,
transform = !is.null(transform),
transform_arg = transform_arg,
transform = transform_arg,
Comment thread R/table_footer.R
# emmeans), so we use the `transform` argument as passed by the user
if (predict == "link") {
predict <- .link_transform_label(info$transform_arg, model)
predict <- .link_transform_label(info$transform, model)
@strengejacke
strengejacke deleted the simplify_transform_arg branch October 19, 2026 09:17
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.

2 participants