title: Javascript inside r chunk of code (rMarkdown document)
body: <p>Is it possible to send value from javascript function to r variable? Something like this one:</p>
  
  <pre><code>&lt;script&gt;
  function myFunction(){
  return('Hello World!')
  }
  &lt;/script&gt;
  
  ```{r}
  variable = myFunction()
  print(variable)
  ```
  </code></pre>
  
  <p>Thank you very much for your advice in advance.</p>