webr icon indicating copy to clipboard operation
webr copied to clipboard

RASM Build for R Package No Longer Working (webR + altdoc)

Open jgeller112 opened this issue 6 months ago • 5 comments

Summary
I have an R package that uses webR and altdoc to build an interactive documentation website. This setup **previously worked, but recently started failing without any changes to the workflow.


Environment

  • r-wasm/actions@v1
  • webr-image: ghcr.io/r-wasm/webr:v0.5.2
  • Package uses altdoc + quarto + webR

YAML Snippet

- name: Build WASM R packages
  uses: r-wasm/actions/build-rwasm@v1
  with:
    packages: "."
    repo-path: "_site"
    webr-image: "ghcr.io/r-wasm/webr:v0.5.2"

I get this error

ERROR: dependencies 'tidyverse', 'janitor', 'readxl', 'ggokabeito', 'here', 'knitr', 'tinytable', 'easystats', 'zoo' are not available for package 'mypkg'

I have also raised this here: https://github.com/coatless-r-n-d/quarto-webr-in-altdoc/issues/2

Here is link to my the yml I am using, if that helps: https://github.com/jgeller112/webgazeR/blob/master/.github/workflows/altdoc.yaml

I am not sure this is right place, but I hope someone can help me figure this out.

jgeller112 avatar Jul 07 '25 19:07 jgeller112

I think this is due to https://github.com/r-lib/pak/issues/784.

A fix for that issue has already been made, but a version of pak containing the fix has not been released yet. In theory, once the next version of pak hits CRAN this error should go away.

georgestagg avatar Jul 08 '25 08:07 georgestagg

Thanks for the quick response and helpful information!

jgeller112 avatar Jul 08 '25 14:07 jgeller112

Is there a way of modifying the action call to use the unreleased version of the package frompaks Github repo until such a time as the updated package is formally released?

psychemedia avatar Jul 14 '25 13:07 psychemedia

Is there a way of modifying the action call to use the unreleased version of the package frompaks Github repo until such a time as the updated package is formally released?

Would want something like this as well.

jgeller112 avatar Jul 29 '25 01:07 jgeller112

Does this helpnas a way of getting a fixed(?) version of pak ( I am unable to check at the moment?) https://pak.r-lib.org/reference/install.html#nightly-builds

Also, how would the builder action then make use of it?

psychemedia avatar Aug 21 '25 09:08 psychemedia