Skip to content

ColinFay/webrcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webrcli

[EXPERIMENTAL] Do not use

cli tools for building node project with webr inside

Install

npm install -g webrcli

Get version

webrcli --version

Init a project

  • Initiate and configure a project:
webrcli init ./mywebrapp

Command line tools

  • Download a webR compiled package and its dependencies:
webrcli install cowsay
  • Read a DESCRIPTION file and build the webR package library
webrcli installFromDesc $(pwd)/rfuns/DESCRIPTION

Working example

cd /tmp
webrcli init cowsaywebr
cd cowsaywebr
webrcli install cowsay

Modify the index.js with this line juste before the end of the function

await globalThis.webR.evalR('cowsay::say("Hello from R!")');

Then run

node index.js

About

cli for building node project with webr inside

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published