title: R, R6, Formals for Public Method
body: <p>How can I get the formals for a method definition in an R6 class definition?</p>
  
  <pre><code>A = R6Class("MyClass",inherit=NULL,
      public = list(
          fun = function(a,b,c){
              # Do Something
          }
      )
  )
  </code></pre>
  
  <p>So for example, in the above, I would like to get the formals for the <code>fun</code> definition, in the same way one can execute, for example, <code>formals(lm)</code></p>