webr icon indicating copy to clipboard operation
webr copied to clipboard

Adding missing packages to webr

Open tstubbs-evolution opened this issue 11 months ago • 11 comments

Hello,

I am hoping to use statscloud to design some teaching material. statscloud uses WebR for its R terminal interface. When trying to install a package, it gave the error "Requested package XXXXX not found in webR binary repo". I wanted to ask, can packages be added to the webR binary repo?

I wanted to use the the R package 'phytools', but when installing the dependencies, it stated:

Requested package mnormt not found in webR binary repo. Requested package phangorn not found in webR binary repo

Would it be possible to add mnormt, phangorn and phytools to the binary repo?

Best wishes, Tom

tstubbs-evolution avatar Mar 13 '24 13:03 tstubbs-evolution

Oh yes, also: tseries, nloptr, glmnet, muhaz, arrangements, robustbase, curl - used itself Rmpfr, RcppZiggurat, gsl, deSolve - serving as auxiliary dependencies

These packages make key dependency in multiple important packages.

library(MKinfer)
Downloading webR package: MKdescr
Downloading webR package: boot
Warning in install(dep, repos, lib, quiet) :
  Requested package arrangements not found in webR binary repo.
Downloading webR package: exactRankTests
Downloading webR package: ellipsis

[...]

Downloading webR package: MKinfer
Error: could not find function "perm.t.test"
Error: package or namespace load failed for ‘MKinfer’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘arrangements’

adrianolszewski avatar Mar 17 '24 23:03 adrianolszewski

Just wanted to add my +1 to nloptr: this package is imported by lme4, which is a core mixed effects modelling package.

tylermorganwall avatar Mar 25 '24 19:03 tylermorganwall

The nloptr/lme4 packages are being tracked in r-wasm/rwasm#31.

georgestagg avatar Apr 03 '24 09:04 georgestagg

I'm also wondering what makes the arrangements package to be missing - is this because making it a web assembly fails for some reason, or because it wasn't yet recompiled for web assembly?

This package seems to be rather rarely updated (looking at the GitHub metrics), but maybe the author will be willing to help ( https://github.com/randy3k/arrangements ). If not, then I will contact the author of the MKinfer package ( https://github.com/stamats/MKinfer ), which is just awesome set of permutation and bootstrap tests (so extensively using permutation generator), to maybe switch to something else, that is supported by web R.

adrianolszewski avatar Apr 03 '24 12:04 adrianolszewski

I am also going to ask to add curl to webR. I am developing a website with quarto and I would like to have interactive plot with shinylive. I know it is possible to use iframe and recall a published shiny app, but the project will have tons of interactive plots.

SimoneBrazzi avatar Sep 06 '24 18:09 SimoneBrazzi

Adding my +1 for curl, and would also like to request scrypt, MASS, Matrix, and V8 as I am developing a password-protected shiny app containing interactive plots and maps that include these packages as dependencies. Thank you!

laceym14 avatar Sep 17 '24 16:09 laceym14

Upvote on MASS, Matrix and curl

pawelru avatar Sep 18 '24 13:09 pawelru

MASS and Matrix should already be there, are they not working for you?

curl and V8 will be difficult, but are on our radar.

georgestagg avatar Sep 18 '24 13:09 georgestagg

Oh gosh, I was looking at the old logs! Yes - I confirm that both MASS and Matrix are already there!

pawelru avatar Sep 18 '24 13:09 pawelru

Oh interesting, I see them there now too but for some reason I'm still getting the following warnings when I run shinylive::export(appdir = "app-dir", destdir = "export-dir"): 1: Can't find MASS in webR binary repository. 2: Can't find Matrix in webR binary repository. I'm using v0.2.0 of shinylive, I'm not sure why those two aren't recognized in the binary repo.

laceym14 avatar Sep 18 '24 14:09 laceym14

Also getting Warning messages: 1: Can't find MASS in webR binary repository. 2: Can't find Matrix in webR binary repository. on rendering quarto with shinylive. Although, it worked yesterday.

bakered avatar Sep 19 '24 07:09 bakered

I would like also to ask to add forecast, xgboost and modeltime?

quartermaine avatar Oct 17 '24 13:10 quartermaine