Skip to content

pkgdown workflow failing: pkgcache 2.2.5 res_one_row_df bug #6

Description

@khusmann

The Build irid Wasm binary step (r-wasm/actions/build-rwasm@v2) in .github/workflows/pkgdown.yaml has been failing since ~2026-05-08 with:

Error in "res_one_row_df(entries)" : ! `nrow(out)` must equal `1`.
Calls: <Anonymous> ... <Anonymous> -> pkgplan_resolve -> synchronise -> <Anonymous>

Root cause

Upstream bug in pkgcache 2.2.5 (current CRAN). Tracked in:

Fix is in dev pkgcache (merged to dev pak in r-lib/pak@ab497a7), not yet on CRAN.

Options

  1. Wait for a pkgcache CRAN release that includes the fix — no action needed, will start passing automatically.

  2. Workaround: replace the r-wasm/actions/build-rwasm@v2 step with an inline docker run that installs pak from the devel repo before calling rwasm::add_pkg:

    install.packages(
      "pak",
      repos = sprintf(
        "https://r-lib.github.io/p/pak/devel/%s/%s/%s",
        .Platform$pkgType, R.Version()$os, R.Version()$arch
      )
    )
    pak::pak("r-wasm/rwasm")
    rwasm::add_pkg("local::.", repo_dir = "_rwasm")
    rwasm::make_vfs_library(out_dir = ".", repo_dir = "_rwasm")

    Run inside ghcr.io/r-wasm/webr:main with the workspace mounted (the existing action's code.R is the template).

Close this once CRAN pkgcache > 2.2.5 ships and the workflow goes green again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions