Closed FloSchuberth closed 6 years ago
Here is the problem with a potential solution, but not very nice: https://stackoverflow.com/questions/19651274/doparallel-foreach-scoping-issue-error-in-evalexpr-envir-enclos-could-not
Perhaps the solution is to avoid the val command and use get or a similar command.
yes, get()
could work
@FloSchuberth can you test my recent commit using foreach
?
I hope that fixes the problem, although apparently the eval(print(text = ""))
construct i used is not always optimal (see e.g., this stackoverflow discussion). But i guess we can worry about that some other time..
Currently csem does not work with foreach. It does not find the model even if I provide it via .export. I think it has sth to do with storing the arguement and use the eval command...