Skip to content

Conversation

@Kss2k
Copy link
Owner

@Kss2k Kss2k commented Jan 19, 2026

No description provided.

@Kss2k Kss2k marked this pull request as draft January 19, 2026 21:11
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 755f0600f5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +13 to +15
keepRn <- rep(TRUE, length(rn))
keepRn[isTempRn][isDupTempRn] <- FALSE
mat <- mat[keepRn, , drop = FALSE]

Choose a reason for hiding this comment

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

P2 Badge Fix temp-OV duplicate filtering (current subsetting is no-op)

In R, chained indexing like keepRn[isTempRn][isDupTempRn] <- FALSE updates a temporary vector, so keepRn is unchanged. When both .TEMP_OV__x and x rows exist, the temp rows are not dropped, and rnClean[keepRn] then collapses both to x, yielding duplicated row names/cols. That can lead to ambiguous indexing or downstream errors when consumers expect unique names (e.g., modsem_inspect/modsem_predict output). You’ll want to index keepRn directly (e.g., keepRn[which(isTempRn)[isDupTempRn]] <- FALSE), and the same pattern appears in the column and vector cases.

Useful? React with 👍 / 👎.

@Kss2k Kss2k marked this pull request as ready for review January 20, 2026 08:14
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0fa75f8b14

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

R/inspect_da.R Outdated
partable = modsemParTable(model$parTable),
coefficients.all = .modsemVector(model$coefs.all),
coefficients.free = .modsemVector(model$coefs.free),
partable = parameter_estimates(model),

Choose a reason for hiding this comment

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

P2 Badge Honor is.public when returning partable

modsem_inspect_da() now builds partable via parameter_estimates(model) without forwarding is.public, but parameter_estimates.modsem_da defaults is.public = TRUE (R/generics_modsem_da.R:10–27), which formats names and drops temp OV rows. As a result, modsem_inspect(..., is.public = FALSE) returns an internal set of matrices/vectors alongside a public partable, so name-based joins (e.g., matching partable$lhs/rhs to lambda/theta from the same inspect call) can fail due to mismatched identifiers. Passing is.public = is.public here would keep the payload consistent.

Useful? React with 👍 / 👎.

@Kss2k Kss2k merged commit 8912e27 into main Jan 20, 2026
6 checks passed
@Kss2k Kss2k deleted the format-ov-names branch January 20, 2026 09:39
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