Skip to content

Commit

Permalink
doc: doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinFay committed Jun 10, 2024
1 parent 61b04d2 commit 4208655
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ webrcli --version
- Initiate and configure a project:

```bash
webrcli init ./mywebrapp
webrcli init mywebrapp
```

## Command line tools
Expand All @@ -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
Expand All @@ -56,7 +60,7 @@ await globalThis.webR.evalR('cowsay::say("Hello from R!")');
Then run

```bash
node index.js
npm start
```


0 comments on commit 4208655

Please sign in to comment.