Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gmp, mpfr, glpk #339

Merged
merged 2 commits into from
Dec 21, 2023
Merged

Add gmp, mpfr, glpk #339

merged 2 commits into from
Dec 21, 2023

Conversation

jeroen
Copy link
Contributor

@jeroen jeroen commented Dec 19, 2023

Some GNU high precision libs used by many R packages, such as igraph, gmp, Rmpfr.

For a full list of packages linking to these packages see: https://r-universe.dev/sysdeps/

@jeroen
Copy link
Contributor Author

jeroen commented Dec 21, 2023

Deployed on r-universe and confirmed gmp works:

install.packages('gmp', repos = 'https://antoinelucas64.r-universe.dev')

library(gmp)
x <- as.bigz(matrix(1:12,3))
apply(x,1,min)
apply(x,2,max)
Screenshot 2023-12-21 at 14 51 09

@jeroen
Copy link
Contributor Author

jeroen commented Dec 21, 2023

Afaict mpfr also works (although I am not sure which functions exactly exercise this lib) but this runs:

install.packages('scModels', repos =
  c('https://lisaamrhein.r-universe.dev', 'https://cran.r-universe.dev'))

library(scModels)
example(dpb)
mpfr

@jeroen
Copy link
Contributor Author

jeroen commented Dec 21, 2023

And glpk also seems to work!

install.packages('glpkAPI', repos = c('https://mihai-sysbio.r-universe.dev'))
library(glpkAPI)
example(glpkAPI)
Screenshot 2023-12-21 at 15 07 59

@georgestagg georgestagg merged commit 0db331d into r-wasm:main Dec 21, 2023
2 checks passed
@jeroen
Copy link
Contributor Author

jeroen commented Dec 21, 2023

Thanks! Sorry I had forgotten that I had hardcoded x86_64-pc-linux-gnu in gmp.

@jeroen jeroen deleted the gmp branch December 21, 2023 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants