r-wasm / webr

The statistical language R compiled to WebAssembly via Emscripten, for use in web browsers and Node.
https://docs.r-wasm.org/webr/latest/
Other
804 stars 54 forks source link

[Question] webr - quarto - how to control the size of the code in the webr window #424

Closed rainer-rq-koelle closed 1 month ago

rainer-rq-koelle commented 1 month ago

Apologies, I failed to find a better place to post this question. I am currently exploring using webr in Quarto for some introductory material on R and ggplot for co-workers. I am amazed by the possibilities - however, I have to admit that the "magic of the workings" is not fully transparent to me. From a readability perspective, I would like to have the webr-windows blend nice(r)ly to the surrounding text.

How can I control the fontsize of the code in the webr window of the rendered web-page?

Thanks for any pointer.

georgestagg commented 1 month ago

Hi,

In the case of the quarto-webr extension, webR handles the execution of the R code within the browser, but the details of how editable code blocks are shown to the user are handled by the extension.

So, I think this is probably a question better placed for @coatless over at https://github.com/coatless/quarto-webr.

Apologies, I can't transfer your issue there, so I'm going to close this one. But I am fairly sure that repository is the right place for your question.

coatless commented 1 month ago

@rainer-rq-koelle Feel free to open an issue: https://github.com/coatless/quarto-webr/issues/new/choose !

If it helps, we have documentation on styling elements available here:

https://quarto-webr.thecoatlessprofessor.com/qwebr-theming.html

There is also a great example of custom styling by James Goldie (@jimjam-slam) here.

rainer-rq-koelle commented 1 month ago

Thanks for the pointer(s). I fully understand. Servus, RQ

From: George Stagg @.> Sent: Monday, May 13, 2024 10:58 AM To: r-wasm/webr @.> Cc: KOELLE Rainer @.>; Author @.> Subject: Re: [r-wasm/webr] [Question] webr - quarto - how to control the size of the code in the webr window (Issue #424)

Hi,

In the case of the quarto-webr extension, webR handles the execution of the R code within the browser, but the details of how editable code blocks are shown to the user are handled by the extension.

So, I think this is probably a question better placed for @coatlesshttps://github.com/coatless over at https://github.com/coatless/quarto-webr.

Apologies, I can't transfer your issue there, so I'm going to close this one. But I am fairly sure that repository is the right place for your question.

— Reply to this email directly, view it on GitHubhttps://github.com/r-wasm/webr/issues/424#issuecomment-2107021246, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AECN7JCYYQ26NVJDW4BBGILZCB6CPAVCNFSM6AAAAABHPEGBOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBXGAZDCMRUGY. You are receiving this because you authored the thread.Message ID: @.***>


This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful.

Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy.

Any views expressed in this message are those of the sender.