Skip to content

Commit 41be30c

Browse files
committed
Fix lookup issues for MCEM test that uses nimbleQuad, try 2.
1 parent 45c2001 commit 41be30c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/nimble/tests/testthat/test-mcem.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,8 @@ test_that("MCMC for simple LME case works", {
950950
Laplace <- nimbleQuad::buildLaplace(model=m2, randomEffectsNodes = c("random_int", "random_slope"))
951951
## Work around nimble's namespace/lookup shortcomings.
952952
drop_algorithm <- nimbleQuad::drop_algorithm; quadGH <- nimbleQuad::quadGH
953+
temporarilyAssignInGlobalEnv(drop_algorithm)
954+
temporarilyAssignInGlobalEnv(quadGH)
953955
cLaplace <- compileNimble(Laplace, project = m2)
954956
MLE <- cLaplace$findMLE()
955957

0 commit comments

Comments
 (0)