Skip to content

fix environment in parallel clusterExport in permuteMeasEq#158

Open
Shotgunosine wants to merge 1 commit into
simsem:masterfrom
Shotgunosine:master
Open

fix environment in parallel clusterExport in permuteMeasEq#158
Shotgunosine wants to merge 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.

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.

1 participant