Skip to content

Skip on Emscripten (WebR) #2076

Closed
Closed

Description

@eitsupi

Currently skip_on_os() only supports Windows, Linux, macOS, and Solaris.

testthat/R/skip.R

Lines 155 to 160 in 30f5b11

skip_on_os <- function(os, arch = NULL) {
os <- match.arg(
os,
choices = c("windows", "mac", "linux", "solaris"),
several.ok = TRUE
)

The OS is Emscripten in R builds for WASM such as WebR and xeus-r distributed on Emscripten-forge.

> Sys.info()[["sysname"]]
[1] "Emscripten"

Since testthat seems to work on WebR, it would be useful if skip_on_os() could also recognize Emscripten.

Activity

  1. added
    feature
    on Jul 16, 2025
  2. hadley commented on Jul 16, 2025

    @hadley
    Member

    For sure. Would you be interesting in doing a PR?

  3. eitsupi commented on Jul 16, 2025

    @eitsupi
    ContributorAuthor

    Of course, I'll take a look at it later.

  4. added a commit that references this issue on Jul 24, 2025
    292d6c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureskip

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions