title: How to use the model(decision tree) in C/C++ which trained in R?
body: <p>we have a C++ system, and what I meant is how to integrate the model in our system?</p>
  
  <p>I use R to train a decision tree model, print the tree like this:</p>
  
  <pre><code>     Conditional inference tree with 47 terminal nodes
  
  Response:  label 
  Inputs:  term_num, res_num, r0_pv_num, r0_dr, r0_tr, r0_qr, r0_cr, r0_td, r0_hit_tn, r0_hit_tidf, r0_hit_cidf, r0_hit_tnr, r0_tidfr, r0_cidfr, r0_fr, r1_pv_num, r1_dr, r1_tr, r1_qr, r1_cr, r1_td, r1_hit_tn, r1_hit_tidf, r1_hit_cidf, r1_hit_tnr, r1_tidfr, r1_cidfr, r1_fr, r2_pv_num, r2_dr, r2_tr, r2_qr, r2_cr, r2_td, r2_hit_tn, r2_hit_tidf, r2_hit_cidf, r2_hit_tnr, r2_tidfr, r2_cidfr, r2_fr, r3_pv_num, r3_dr, r3_tr, r3_qr, r3_cr, r3_td, r3_hit_tn, r3_hit_tidf, r3_hit_cidf, r3_hit_tnr, r3_tidfr, r3_cidfr, r3_fr 
  Number of observations:  9944 
  
  1) r3_fr &lt;= 910; criterion = 1, statistic = 2800.604
    2) r1_tr &lt;= 12; criterion = 1, statistic = 375.037
      3) r3_dr &lt;= 4; criterion = 1, statistic = 107.044
        4) r0_tidfr &lt;= 0.65; criterion = 1, statistic = 52.212
          5) r0_tr &lt;= 0; criterion = 0.999, statistic = 19.047
            6)*  weights = 358 
          5) r0_tr &gt; 0
            7) term_num &lt;= 4; criterion = 0.994, statistic = 14.917
              8) r3_fr &lt;= 496; criterion = 1, statistic = 20.334
                9)*  weights = 149 
              8) r3_fr &gt; 496
                10)*  weights = 140 
            7) term_num &gt; 4
              11)*  weights = 825 
        4) r0_tidfr &gt; 0.65
          12)*  weights = 190 
      3) r3_dr &gt; 4
        13) term_num &lt;= 4; criterion = 1, statistic = 43.327
          14) r3_fr &lt;= 613; criterion = 1, statistic = 37.962
            15)*  weights = 33 
          14) r3_fr &gt; 613
            16)*  weights = 225
  etc...
  </code></pre>
  
  <p>How can I transplant this model into my C/C++ system？（And it's no terminal node in the print）.Thanks!</p>