[Rd] Embedding R in other applications as a scripting language
I am subscribing to r-core because I am spending more and more time reading the R implementation itself, but in the meantime I would love to discuss the topic of embedding R (or linking against it) with more experienced C developers and people who've written C or C++ code for R packages. I have reached the stage where to make progress with embedding R in the target application, TIC-80 (see https://tic80.com/), I need to study how R is initialized in a finder detail. At the moment my plans for integrating R include bundling the recommended packages in addition to magrittr (more than that would be overkill for the integration). The most relevant information I have seen on embedding R in other applications *as a scripting language* comes from the tests/Embedding/index.html document included in the R sources. At the moment the Internet Archive is down while they deal with a DDOS attack (thankfully their data are safe), so I can't access the PostgreSQL + R documents linked to from there. No big matter. I'm not particularly versed in C myself, but I can read it well and I understand more each day I read the R implementation itself and expose myself to the actual usage of non-trivial C. I read *Narain Gehani's C: an Advanced Introduction* over the summer to familiarize myself with the aspects of the language which weren't transparent to me from studying other languages (Java, R, Emacs LISP, Python). Anyhow, if anyone has experience playing with this since it was more popular twenty years ago (as it seems) please reply! Regards, and thanks for all the pirate jokes. R! --- Bryce [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Better support ESS by allowing choice of CRAN mirror using the `menu-choice` widget
I see, a profile option is a good idea. I think I will tinker with the ESS package a bit regardless and see what interesting things can be done. On Wed., Apr. 9, 2025, 7:02 p.m. Dirk Eddelbuettel, wrote: > > On 8 April 2025 at 23:15, Bryce Carson wrote: > | I know ESS already has a better interface for installing packages, C-c > C-e > | TAB, but it'd be "neat" if when I forget to do this and I call > | install.packages() without first setting a mirror that either the same > | interface would be presented rather than Tcl/Tk, or a widget.el-based > | interface was presented. > > You could avoid the issue by setting the CDN-served cloud.r-project.org > up as > your default. The ways CDNs work, they will always automatically find you > the > closest server in their network. No need to manually select. > > I set the following up as the default for the Debian (and hence Ubuntu, > PopOS!, ...) package back in 2018 as part of Rprofile.site: > > ## We set the cloud mirror, which is 'network-close' to everybody, as > default > local({ > r <- getOption("repos") > r["CRAN"] <- "https://cloud.r-project.org"; > options(repos = r) > }) > > and use it personally too. > > In your case ESS would dispatch to R, and R would do "The Right Thing (TM)" > as instructed. > > Dirk > > -- > dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org > [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Better support ESS by allowing choice of CRAN mirror using the `menu-choice` widget
This would allow ESS to be used in a graphical-mode emacs without utilizing the Tcl/Tk widget, and on non-Linux platforms would allow Emacs to provide the choice widget rather than Tcl/Tk, Aqua, or whatever Windows does. [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Better support ESS by allowing choice of CRAN mirror using the `menu-choice` widget
I know ESS already has a better interface for installing packages, C-c C-e TAB, but it'd be "neat" if when I forget to do this and I call install.packages() without first setting a mirror that either the same interface would be presented rather than Tcl/Tk, or a widget.el-based interface was presented. On Tue, Apr 8, 2025 at 3:08 PM Bryce Carson wrote: > This would allow ESS to be used in a graphical-mode emacs without > utilizing the Tcl/Tk widget, and on non-Linux platforms would allow Emacs > to provide the choice widget rather than Tcl/Tk, Aqua, or whatever Windows > does. > [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel