ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* R  module
@ 2021-07-05 19:10 Xavier B.
  0 siblings, 0 replies; 7+ messages in thread
From: Xavier B. @ 2021-07-05 19:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: R module
  2019-11-24  9:12       ` luigi scarso
@ 2019-11-25  1:56         ` Aditya Mahajan
  0 siblings, 0 replies; 7+ messages in thread
From: Aditya Mahajan @ 2019-11-25  1:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 858 bytes --]

On Sun, 24 Nov 2019, luigi scarso wrote:

> On Sun, Nov 24, 2019 at 4:12 AM Aditya Mahajan <adityam@umich.edu> 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

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: R module
  2019-11-24  3:11     ` Aditya Mahajan
@ 2019-11-24  9:12       ` luigi scarso
  2019-11-25  1:56         ` Aditya Mahajan
  0 siblings, 1 reply; 7+ messages in thread
From: luigi scarso @ 2019-11-24  9:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 519 bytes --]

On Sun, Nov 24, 2019 at 4:12 AM Aditya Mahajan <adityam@umich.edu> 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

[-- Attachment #1.2: Type: text/html, Size: 922 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: R module
  2019-11-23 21:29   ` Fabrice L
@ 2019-11-24  3:11     ` Aditya Mahajan
  2019-11-24  9:12       ` luigi scarso
  0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2019-11-24  3:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1409 bytes --]

On Sat, 23 Nov 2019, Fabrice L wrote:

> Dear Aditya.
>
>> Le 22 nov. 2019 à 17:49, Aditya Mahajan <adityam@umich.edu> 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

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: R module
  2019-11-22 22:49 ` Aditya Mahajan
@ 2019-11-23 21:29   ` Fabrice L
  2019-11-24  3:11     ` Aditya Mahajan
  0 siblings, 1 reply; 7+ messages in thread
From: Fabrice L @ 2019-11-23 21:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear Aditya.

> Le 22 nov. 2019 à 17:49, Aditya Mahajan <adityam@umich.edu> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: R module
  2019-11-22 22:36 Fabrice L
@ 2019-11-22 22:49 ` Aditya Mahajan
  2019-11-23 21:29   ` Fabrice L
  0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2019-11-22 22:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]

> 	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

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* R module
@ 2019-11-22 22:36 Fabrice L
  2019-11-22 22:49 ` Aditya Mahajan
  0 siblings, 1 reply; 7+ messages in thread
From: Fabrice L @ 2019-11-22 22:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-05 19:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 19:10 R module Xavier B.
  -- strict thread matches above, loose matches on Subject: below --
2019-11-22 22:36 Fabrice L
2019-11-22 22:49 ` Aditya Mahajan
2019-11-23 21:29   ` Fabrice L
2019-11-24  3:11     ` Aditya Mahajan
2019-11-24  9:12       ` luigi scarso
2019-11-25  1:56         ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).