We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ecr::evaluateFitness fails if package is not loaded
ecr::evaluateFitness
objective_function = function(x) { sum(x) } ctrl = ecr::initECRControl(fitness.fun = objective_function, n.objectives = 1) population = ecr::initPopulation(mu = 10, gen.fun = ecr::genBin, n.dim = 4) fitness = ecr::evaluateFitness(ctrl, population) > Error in parallelMap(function(x) do.call(fitness.fun, c(list(x), list(...))), : Level 'ecr.evaluateFitness' not registered
You can fix this by using .onLoad() instead of .onAttach in
.onLoad()
.onAttach
ecr2/R/zzz.R
Line 17 in 53adbfb
With greetings from Michel
The text was updated successfully, but these errors were encountered:
Hi Marc,
thanks for the report. We already figured this one out in #130. Going to fix this soon.
Cheers, Jakob
Sorry, something went wrong.
No branches or pull requests
ecr::evaluateFitness
fails if package is not loadedYou can fix this by using
.onLoad()
instead of.onAttach
inecr2/R/zzz.R
Line 17 in 53adbfb
With greetings from Michel
The text was updated successfully, but these errors were encountered: