[NTG-context] R module
Hi, Just a ConTeXt user needs a R module documentation. Is there some MyWay or something else with a little bit of documentation about R module in ConTeXt MKIV? Another thing: R module seems unmaintained because \usemodule[r] gives me modules > 'r' is not found Yes, I know that filter module exists and it could emulate R module but I just want to know officially the state of R module Thanks a lot, Xavier ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] R module
On Sun, 24 Nov 2019, luigi scarso wrote: On Sun, Nov 24, 2019 at 4:12 AM Aditya Mahajan wrote: On Sat, 23 Nov 2019, Fabrice L wrote: Thanks for your answer. I did not know about the filter module. I had a look; the module is powerful… but complex to install. Why do you say so? If you are using context-minimals, then this can be installed like any other module. If you are using texlive, then can be installed using tlmgr. I argue that talking of a ffi binding of R is out-of-question ... The filter module works by executing a binary in the shell (os.execute(...)), and caching the result. So it is much simpler than an ffi binding. FFI binding will be faster, but requires more work (I once tried to figure out if I could create ffi bindings for octave, and gave up). Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] R module
On Sun, Nov 24, 2019 at 4:12 AM Aditya Mahajan wrote: > On Sat, 23 Nov 2019, Fabrice L wrote: > > Thanks for your answer. I did not know about the filter module. I had a > > look; the module is powerful… but complex to install. > > Why do you say so? If you are using context-minimals, then this can be > installed like any other module. If you are using texlive, then can be > installed using tlmgr. > I argue that talking of a ffi binding of R is out-of-question ... -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] R module
On Sat, 23 Nov 2019, Fabrice L wrote: Dear Aditya. Le 22 nov. 2019 à 17:49, Aditya Mahajan a écrit : I’m teaching with R this term, and I tried (without success) the R-module (I think the path of R is not found). Having no time to test and find out the problem, I have tried with success knitr (with is Rmarkdown code converted to latex-beamer). But I’m missing Context… My understanding is that the R-module is working only with mk-ii. Is there people in this list using successfully the r-module with mk-iv ? Have you tried the filter module: https://github.com/adityam/filter/blob/master/README.md For setup with R, see: https://github.com/adityam/filter/wiki/R Aditya Thanks for your answer. I did not know about the filter module. I had a look; the module is powerful… but complex to install. Why do you say so? If you are using context-minimals, then this can be installed like any other module. If you are using texlive, then can be installed using tlmgr. It is not clear for me: this module would permits to submit code to R, optionally shows this code in the conTeXt document, and includes the output of R ? Yes, to all three. So is it a modern replacement of the r-module ? You can think of it that way. It works for all programming languages, and not just R. Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] R module
Dear Aditya. > Le 22 nov. 2019 à 17:49, Aditya Mahajan a écrit : > >> I’m teaching with R this term, and I tried (without success) the >> R-module (I think the path of R is not found). Having no time to test and >> find out the problem, I have tried with success knitr (with is Rmarkdown >> code converted to latex-beamer). But I’m missing Context… My understanding >> is that the R-module is working only with mk-ii. Is there people in this >> list using successfully the r-module with mk-iv ? > > Have you tried the filter module: > https://github.com/adityam/filter/blob/master/README.md > > For setup with R, see: > https://github.com/adityam/filter/wiki/R > > Aditya Thanks for your answer. I did not know about the filter module. I had a look; the module is powerful… but complex to install. It is not clear for me: this module would permits to submit code to R, optionally shows this code in the conTeXt document, and includes the output of R ? So is it a modern replacement of the r-module ? Thanks ! Fabrice. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] R module
I’m teaching with R this term, and I tried (without success) the R-module (I think the path of R is not found). Having no time to test and find out the problem, I have tried with success knitr (with is Rmarkdown code converted to latex-beamer). But I’m missing Context… My understanding is that the R-module is working only with mk-ii. Is there people in this list using successfully the r-module with mk-iv ? Have you tried the filter module: https://github.com/adityam/filter/blob/master/README.md For setup with R, see: https://github.com/adityam/filter/wiki/R Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] R module
Dear list, I’m teaching with R this term, and I tried (without success) the R-module (I think the path of R is not found). Having no time to test and find out the problem, I have tried with success knitr (with is Rmarkdown code converted to latex-beamer). But I’m missing Context… My understanding is that the R-module is working only with mk-ii. Is there people in this list using successfully the r-module with mk-iv ? Thanks, Fabrice. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___