title: How can I access JS variable name for rhandsontable rendered in Shiny?
body: <p>I use rhandsontable package to create interactive tables in Shiny app.</p>
  
  <p>I need some cells to be selected <strong>programmatically</strong>, based on some other user actions.
  However, I could not find such functionality in rhandsontable wrapper in R.</p>
  
  <p>Meanwhile, it is definitely possible in native Handsontable.js with <code>selectCell()</code> 
  function. I attach small jsfiddle example:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>document.addEventListener("DOMContentLoaded", function() {
    var data = [
      ["", "Ford", "Volvo", "Toyota", "Honda"],
      ["2014", 10, 11, 12, 13],
      ["2015", 20, 11, 14, 13],
      ["2016", 30, 15, 12, 13]
    ];
  
    var container = document.getElementById('example1');
    var hot = new Handsontable(container, {
      data: data,
      minSpareRows: 1,
      rowHeaders: true,
      colHeaders: true,
      contextMenu: true
    });
  
    hot.selectCell(1, 0);
  })</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>&lt;/style&gt;&lt;!--  --&gt;&lt;script src="https://docs.handsontable.com/0.15.0/scripts/jquery.min.js"&gt;&lt;/script&gt;&lt;script src="https://docs.handsontable.com/0.15.0/bower_components/handsontable/dist/handsontable.full.js"&gt;&lt;/script&gt;&lt;link type="text/css" rel="stylesheet" href="https://docs.handsontable.com/0.15.0/bower_components/handsontable/dist/handsontable.full.min.css"&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="example1" class="hot handsontable"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="http://jsfiddle.net/vz74zeqo/" rel="nofollow noreferrer">http://jsfiddle.net/vz74zeqo/</a></p>
  
  <p>So, I could run <code>shinyjs::runjs('hot.selectCell(1,0);')</code> and everything would be fine. </p>
  
  <p>But the question is: how can I learn the JS variable name, associated with the table, when it is created with <code>renderRHandsontable()</code> function in Shiny? (in my example it is named <code>hot</code>)</p>
  
  <p>Thanks!</p>
  
  <p>Alex</p>