title: How to create an S4 Object using RdotNet
body: <p>While using <strong>R.NET</strong> for creating an <code>S4 object</code> ( an output of a function from the <code>mirt</code> package. </p>
  
  <pre><code>engine.Evaluate("library(mirt); data(LSAT6); x=mirt(LSAT6,1)");
  S4Object Convertedinput = inputtoCsharp.AsS4();
  </code></pre>
  
  <p>I need to to see the output of x (all the slots of x) into a message box. </p>
  
  <p>How can I do that?</p>
  
  <p>because there is no method which does something like this:</p>
  
  <pre><code>int[] resp_c = new int  [] {1,1,1,1};
  **IntegerVector resp_cR = engine.CreateIntegerVector(resp_c);**
  engine.SetSymbol("resp_c", resp_cR);
  engine.Evaluate("ff=fscores(x, response.pattern=resp_c)");
  </code></pre>
  
  <p>above thing is done for the integer vector. I need to emulate same for the <code>S4 object</code> in R.</p>
  
  <p>How will I be able to do that?</p>