Skip to content

Update webR to run R 4.4: can't install packages from a custom wasm CRAN built with R 4.4 #131

@DivadNojnarg

Description

@DivadNojnarg

I am maintaining a wasm CRAN-like which was build from GA with R4.3 few weeks ago using the r-wasm/actions flow from @georgestagg: https://github.com/RinteRface/rinterface-wasm-cran.

I updated it and since R4.4 was released recently, my WASM repo is now built with R4.4. shinylive depends on an older webr version (webR only supports R4.4.0 since recently r-wasm/webr@28077f5). Therefore, shinylive still runs R4.3 (there are references to R4.3 such as in webr::install):

webr::install
function (packages, repos = NULL, info = NULL, lib = NULL, quiet = FALSE, 
    mount = TRUE) 
{
    ...
    contrib <- gsub("repo.r-wasm.org/bin/emscripten/contrib/4.3", 
        "repo.r-wasm.org/bin/emscripten/contrib/4.3.3", contrib, 
        fixed = TRUE)
...
}
getRversion()
[1] ‘4.3.3

which prevents from retrieving and installing the package from my CRAN like.

Here is the shinylive link to reproduce.

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