Skip to content

fix environment in parallel clusterExport in permuteMeasEq - #158

Merged
TDJorgensen merged 1 commit into
simsem:masterfrom
Shotgunosine:master
Oct 7, 2026
Merged

TDJorgensen merged 1 commit into
simsem:masterfrom
Shotgunosine:master

Conversation

@Shotgunosine

Copy link
Copy Markdown
Contributor

Small tweak to import semTools in the parallel::clusterExport as a minimal fix to enable snow for permuteMeasEq, fixing #95. Confirmed that their repex runs without error with this change. I know elsewhere you discussed overhauling permuteMeasEq, but this may be an ok stopgap in the meantime.

@Shotgunosine

Copy link
Copy Markdown
Contributor Author

Note: more complex calls (where the original cfa() call references local variables, or where the worker needs lavaan::lavTestScore) may surface additional issues with the snow path, e.g., workers needing library(lavaan) to be loaded explicitly via clusterEvalQ and additional variables exported via the user's pre-built cluster (cl = argument). This is only addressing the simple case exemplified in #95.

@TDJorgensen
TDJorgensen merged commit 22ab9e6 into simsem:master Oct 7, 2026
5 checks passed
@TDJorgensen

Copy link
Copy Markdown
Member

Thanks!

@Shotgunosine

Copy link
Copy Markdown
Contributor Author

Thanks for reviewing and merging this and #160 !

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