From 4208655fe961dc775b575488896b816c94fe17d5 Mon Sep 17 00:00:00 2001 From: colin Date: Mon, 10 Jun 2024 18:23:11 +0200 Subject: [PATCH] doc: doc update --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 55e26c4..f6fbb7e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ webrcli --version - Initiate and configure a project: ```bash -webrcli init ./mywebrapp +webrcli init mywebrapp ``` ## Command line tools @@ -38,6 +38,10 @@ webrcli install cowsay webrcli installFromDesc $(pwd)/rfuns/DESCRIPTION ``` +## Other functions + +- `webrcli installFromPackageJson` used when running `npm start`, so you probably do not need to use it manually. This function takes a `package.json` file with an `rdependencies` entry and install the packages listed there. + ## Working example ```bash @@ -56,7 +60,7 @@ await globalThis.webR.evalR('cowsay::say("Hello from R!")'); Then run ```bash -node index.js +npm start ```