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.
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
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.
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
On Sun, Nov 24, 2019 at 4:12 AM Aditya Mahajan
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
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
participants (3)
-
Aditya Mahajan
-
Fabrice L
-
luigi scarso