webr
webr copied to clipboard
Cannot install `igraph` package.
The igraph
package cannot be installed on webr (but it can be installed on R Studio).
This is the err:
First of all: thank you for the amazing work on webR! I have a similar issue as this person: I needed to use network3D, but igraph is not available as a dependency in the WebR binary R package repository. Could you please include the igraph package? While testing my code via https://shinylive.io/r/editor , I got the following messages below: Downloading webR package: yaml Downloading webR package: evaluate Downloading webR package: xfun Downloading webR package: highr Downloading webR package: knitr Downloading webR package: stringi Downloading webR package: vctrs Downloading webR package: stringr Downloading webR package: tinytex Downloading webR package: rmarkdown Downloading webR package: htmlwidgets Warning in install(dep, repos, info, lib, quiet, mount) : Requested package igraph not found in webR binary repo. Downloading webR package: networkD3 Error: package or namespace load failed for ‘networkD3’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘igraph’
Thank you.
This seems to now be working, at least on https://webr.r-wasm.org/latest/.
> library(igraph)
Failed to load package "igraph". Do you want to try downloading it from the webR binary repo?
1: Yes
2: No
Selection: 1
Downloading webR package: cli
Downloading webR package: glue
Downloading webR package: rlang
Downloading webR package: lifecycle
Downloading webR package: magrittr
Downloading webR package: lattice
Downloading webR package: Matrix
Downloading webR package: pkgconfig
Downloading webR package: vctrs
Downloading webR package: cpp11
Downloading webR package: igraph
Attaching package: ‘igraph’
The following objects are masked from ‘package:stats’:
decompose, spectrum
The following object is masked from ‘package:base’:
union