Skip to content

Fail to get package with repo hosted on GitHub Page  #18

@DivadNojnarg

Description

@DivadNojnarg

Below is what I did for a recent project:

  1. I setup a wasm CRAN here: https://github.com/RinteRface/rinterface-wasm-cran following the doc from here.
  2. I try to install {shinyMobile} from the provided url: https://rinterface.github.io/rinterface-wasm-cran/. Demo shinylive app is here
webr::install("shinyMobile", repos = "https://rinterface.github.io/rinterface-wasm-cran/")
Warning: unable to access index for repository https://rinterface.github.io/rinterface-wasm-cran/bin/emscripten/contrib/4.3:
  download from 'https://rinterface.github.io/rinterface-wasm-cran/bin/emscripten/contrib/4.3/PACKAGES' failed
  1. Then, if I manually upload the same GA artifact to Netlify + custom headers (this would not work without):
#netlify.toml

[[headers]]
  for = "/*"
  [headers.values]
    Access-Control-Allow-Origin = "*"
    Access-Control-Allow-Headers = "*"
    Access-Control-Allow-Methods = "*"

I can download the packages and run the app with the correct package version

webr::install("gplots")
webr::install("shinyMobile", repos = "https://66199b8ebceb89385d143187--frabjous-twilight-b36d68.netlify.app/")

# Working well

This used to work in the past months. Roughly 4 months ago I setup the same infrastructure on a non CRAN package and could download it from the wasm CRAN: BristolMyersSquibb/webr-repos@d05444f). This other setup is now also broken.

My understanding is that upload page artifact is in beta and evolving so things might have changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions