Skip to content

Commit

Permalink
Export function and switch name to in_webr()
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jan 12, 2024
1 parent 06d549c commit 63c3680
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 6 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Generated by roxygen2: do not edit by hand

export(in_webr)
5 changes: 3 additions & 2 deletions R/is-wasm.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
#' that matches `"wasm32"`. If its the case, we're likely using webR to access
#' R.
#'
#' @export
#' @examples
#' # Check to see if WASM is active
#' is_r_using_wasm()
is_r_using_wasm <- function() { R.Version()$arch == "wasm32"}
#' in_webr()
in_webr <- function() { R.Version()$os == "emscripten" }
24 changes: 24 additions & 0 deletions man/demorwasmbinary-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/is_r_using_wasm.Rd → man/in_webr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 63c3680

Please sign in to comment.