This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

webrtools

0.0.3 • Public • Published

webrtools

Random tools to work with webr

Install

npm i webrtools

Pre-install and load R packages

# In your terminal
Rscript ./node_modules/webrtools/r/install.R dplyr

# In your app
const { loadPackages } = require('webrtools');
const { WebR } = require('webr');

(async () => {
  globalThis.webR = new WebR();
  await globalThis.webR.init();

  await loadPackages(
    globalThis.webR,
    path.join(__dirname, 'webr_packages')
  )

  await globalThis.webR.evalR("library(dplyr)");
})();

Readme

Keywords

none

Package Sidebar

Install

npm i webrtools

Weekly Downloads

4

Version

0.0.3

License

MIT

Unpacked Size

8.82 kB

Total Files

16

Last publish

Collaborators

  • colinfay