workers</span></pre></body></html></div>
<p>It is then good practice to use a double colon operator to access some function from any included packages:</p>
<div class="sourceCode" id="cb3"><html><body><pre class="r"># At the top of a custom Bandit or Policy R file
library(testthat)
Bandit &lt;- R6::R6Class(
  class    = FALSE,
  public   = list(
    ...
    # Within a custom Bandit or Policy
    fit &lt;- stan::stan(...)
    ...
)</pre></body></html></div>
</div>
<div id="why-are-my-custom-classes-slower-th