title: How to call a function in V8() R Package with arguments
body: <p>I tried to "browserify" this package <a href="https://www.npmjs.com/package/google-play-scraper" rel="nofollow noreferrer">Google-Play-Scraper</a> so I can use it in R. However, I cannot seem to know how I can call a function. </p>
  
  <p>rCode.R: </p>
  
  <pre><code>ct &lt;- v8()
  ct$source("scraper/googleplayscraperbundle.js")
  test_app &lt;- "{\"appId\":\"com.mojang.minecraftpe\",\"page\":0}"
  pretty_test &lt;- ct$call("scraper.reviews", test_app)
  </code></pre>
  
  <p>Output</p>
  
  <p><a href="https://i.stack.imgur.com/C0WzO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C0WzO.png" alt="Output of pretty_test"></a>
  This is the snippet of how to use the reviews function. <a href="https://www.npmjs.com/package/google-play-scraper#reviews" rel="nofollow noreferrer">Review Function Link</a></p>
  
  <pre><code>gplay.reviews({
    appId: 'com.mojang.minecraftpe',
    sort: gplay.sort.RATING
  }).then(console.log, console.log);
  </code></pre>