0.0.3 • Published 6 months ago

webrtools v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

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)");
})();
0.0.3

6 months ago

0.0.2

7 months ago

0.0.1

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago