title: Setting class(x) to "environment" sets attribute to NULL; result will no longer be an S4 object
body: <p>Afer having created an lmer model:</p>
  <pre><code>my_m = lmer(y ~ x1*x2 + (1|id) + (1|tp), data=my_data)
  </code></pre>
  <p>I now want to extract the conditional modes of the random effects by running:</p>
  <pre><code>ranef(my_m)
  </code></pre>
  <p>I got the warnings:</p>
  <pre><code>Warning messages:
  1: In class(object) &lt;- &quot;environment&quot; :
    Setting class(x) to &quot;environment&quot; sets attribute to NULL; result will no longer be an S4 object
  2: In class(object) &lt;- &quot;environment&quot; :
    Setting class(x) to &quot;environment&quot; sets attribute to NULL; result will no longer be an S4 object
  </code></pre>
  <p>and no other output.</p>
  <p>Do you now how can I solve these warnings?
  (I got the same when running influence command from influence.ME library)</p>
  <p>Thank you in advance!</p>