title: glmulti wrapper for lmer does not produce results
body: <p>I am using a <code>glmulti</code> wrapper for glmer (binomial) and the <code>summary</code> is:</p>
  
  <p><code>This is glmulti 1.0.7, Apr. 2013.
  Length  Class   Mode 
       0   NULL   NULL</code></p>
  
  <p>Following what has been done on this this thread, though this is for <code>lmer</code>,
  <a href="https://stackoverflow.com/questions/12228418/glmulti-runs-indefinitely-when-using-genetic-algorithm-with-lme4">glmulti runs indefinitely when using genetic algorithm with lme4</a>, I get the same result as above. Could it be that the versions have changed since and the wrapping has to be done differently? The following is the dummy code (lifted form the link above):</p>
  
  <pre><code>x = as.factor(round(runif(30),1))# dummy grouping factor
  yind = runif(30,0,10) # mock dependent variable
  a = runif(30) # dummy covariate
  b = runif(30) # another dummy covariate
  c = runif(30) # an another one
  d = runif(30)
  
  tmpdata &lt;- data.frame(x=x,yind=yind,a=a,b=b,c=c,d=d)
  
  lmer.glmulti &lt;- function (formula, data, random = "", ...) {
  lmer(paste(deparse(formula), random), data = data, REML=F, ...)
  }
  
  summary(glmulti(formula = yind~a*b*c*d,
                  data = tmpdata,
                  random = '+(1|x)',
                  level = 2,
                  method = 'h',
                  crit = 'aicc',
                  marginality = TRUE,
                  fitfunc = lmer.glmulti))
  </code></pre>
  
  <p><code>lme4</code> version: 1.1.5</p>
  
  <p><code>glmulti</code> version: 1.0.7</p>
  
  <p>"R version 3.0.2 (2013-09-25)"</p>
  
  <p><strong>SOLUTION</strong></p>
  
  <p>This works:</p>
  
  <pre><code>lmer.glmulti &lt;- function (formula, data, random, ...) {
  lmer(paste(deparse(formula), random), data = data)
  }
  
  glmulti(y = yind~a*b*c*d,
  data = tmpdata,
  random = '+(1|x)',
  level = 2,
  method = 'h',
  crit = 'aicc',
  marginality = TRUE,
  fitfunc = lmer.glmulti)
  </code></pre>
  
  <p>packageVersion('lme4')
  ‘1.1.5’</p>
  
  <p>packageVersion('glmulti')
  ‘1.0.7’</p>
  
  <p>R.version: 3.1.0</p>
  
  <p><strong>FYI:</strong> From the package maintainer:</p>
  
  <p>"fitfunc must be the name of a function so your other call including the function definition in the glmulti call cannot work."</p>
  
  <p>"you named the first argument to glmulti 'formula', where it must be unnamed or 'y'... Sorry. But y is a formula (if passing a string it is the dependent variable only). "</p>