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

flextable not available for webR due to its gdtools/curl dependency #637

Open
maek-ies opened this issue Jun 6, 2024 · 1 comment
Open

Comments

@maek-ies
Copy link

maek-ies commented Jun 6, 2024

More a question than a bug.

WebR allows to run R code in the browser without the need for an R server to execute the code. For packages to work in webR they need to be compiled to WebAssembly format, but due to technical limitations this is not possible for some packages (the issue is that opening raw network sockets is not permitted from the WebAssembly sandbox so prominently curl package is affected). I'd love to use flextable for shinylive apps built on webR.

My question is whether it would be possible (and not time consuming) to create a lightweight version of flextable that would not be dependent on gdtools/curl? If yes, it should be then easy to compile it to wasm and use in webR. If gdtools package is so essential that it is not so easy to do so and it would take a lot work, then feel free to close the issue. While flextable would be my preference, there are alternative table packages that are compiled for webR already (e.g. gt), and they could be used instead.

2024-06-06_09-51-01

@davidgohel
Copy link
Owner

hello,

I know. I don't think it's hard. gdtools has to be updated with a suggest instead of import instructions for curl and maybe gfonts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants