Detect if the version of R is built using Web Assembly (WASM)

Description

The function checks whether the compiled version of R shows an architecture that matches “emscripten” . If it’s the case, we’re likely using webR to access R.

Usage

in_webr()

Examples

library(altdocwebrdemo)

# Check to see if WASM is active
in_webr()
[1] FALSE