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 library: gsl #340

Merged
merged 1 commit into from
Dec 21, 2023
Merged

add library: gsl #340

merged 1 commit into from
Dec 21, 2023

Conversation

jeroen
Copy link
Contributor

@jeroen jeroen commented Dec 19, 2023

Seems to work with CRAN package gsl:

...
emcc -s SIDE_MODULE=1 -s WASM_BIGINT -s ASSERTIONS=1 -L/opt/webr/wasm/lib -L/opt/webr/wasm/R-4.3.0/lib/R/lib -s USE_BZIP2=1 -s USE_ZLIB=1 -fwasm-exceptions -s SUPPORT_LONGJMP=wasm -Oz -o gsl.so airy.o bessel.o clausen.o coulomb.o coupling.o dawson.o debye.o dilog.o ellint.o elljac.o error.o expint.o fermi_dirac.o gamma.o gegenbauer.o hyperg.o init.o laguerre.o lambert.o legendre.o log.o poly.o pow_int.o psi.o qrng.o rng.o synchrotron.o transport.o trig.o vector.o zeta.o -L/opt/webr/wasm/lib -lgsl -lgslcblas -lm
installing to /tmp/RtmpC56q0r/file213f33e8666e/gsl/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
* creating tarball
packaged installation of 'gsl' as 'gsl_2.1-8_R_x86_64-pc-linux-gnu.tar.gz'
* DONE (gsl)
Packaging: gsl_2.1-8.data

@jeroen
Copy link
Contributor Author

jeroen commented Dec 21, 2023

Test with r-universe:

install.packages('gsl', repos = 'https://robinhankin.r-universe.dev')
library(gsl)
example(coulomb_wave_FG)
Screenshot 2023-12-21 at 15 27 54

@georgestagg
Copy link
Member

Confirmed, working at my end too!

@georgestagg georgestagg merged commit 402d572 into r-wasm:main Dec 21, 2023
2 of 3 checks passed
@jeroen jeroen deleted the gsl branch December 21, 2023 15:35
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