The R Code block relies on the WebR project. It allows us to run R Code directly in the browser.
Next, we use two Text Editor (JSON content) blocks to allow the visitors to provide two variables.
is loading …
is loading …
We are using the “+” operator between the content of the two blocks above.
The R block can run on demand (press Run), automatically, and one can even hide it.
Moreover, we can make it editable, so the users can change it.
is loading …
And below we display the result in a Text Viewer block.
is loading …
Feel free to experiment, e.g. change the value or the operator.
For more details please see the corresponding documentation.
Leave a Reply
You must be logged in to post a comment.