andrewhooker / PopED

Population Experimental Design (PopED) in R

Home Page:https://andrewhooker.github.io/PopED/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

poped_optim with compiled code and parallel=T and gives error with initfunc

krimobe opened this issue · comments

when running
poped_optim(poped.db.compiled,opt_xt=T, opt_a=T, parallel=T)

in the example 9. PK 2.comp.oral.md.ode.compiled example an error occurs.

Capture

When running it without parallel=T the error does not seem to occur (so far).
Is there a work around?

Hi.

This is a problem on windows operating systems with the interaction between compiled code and parallelization. If you use the dlls argument to the function then things should work:

poped_optim(poped.db.compiled,opt_xt=T, opt_a=T, parallel=T, dlls = c('two_comp_oral_CL'))

Best regards,
Andy