Subject: mailing-list for TeXmacs Users
List archive
From : Henri Girard <address@hidden>- To: address@hidden
- Subject: Re: [TeXmacs] R Plugin
- Date: Sun, 26 Mar 2017 09:26:02 +0200
I made a small R file here attachment.
Le 26/03/2017 à 09:19, Henri Girard a écrit :
After compilation of last svn, i tried R in texmacs (sorry for the long message), its does it only at first run after its a normal R field ( :> sqrt(64)
sqrt(64)
[1] 8 )
I didn't try the patch I don't remenber how to to it
Henri
-----------initialisation-------------
if( is.element("TeXmacs", installed.packages()[,1]) ) {library( TeXmacs); }
if( !is.element("TeXmacs", installed.packages()[,1]) ||
!exists("TeXmacsR.version",where = as.environment("package:TeXmacs")) ||
as.numeric( get("TeXmacsR.version",envir=as.environment("package:TeXmacs")))
<0.15 ) {
cur.dir=getwd(); setwd( tempdir() );
system(paste("R CMD build ",Sys.getenv("TEXMACS_PATH"),"/plugins/r/r/TeXmacs",sep="") );
pack=list.files(pattern="TeXmacs.*gz");
install.packages(pack,repos=NULL,type="source");
library(TeXmacs) }
R version 3.3.3 (2017-03-06) -- "Another Canoe"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R est un logiciel libre livré sans AUCUNE GARANTIE.
Vous pouvez le redistribuer sous certaines conditions.
Tapez 'license()' ou 'licence()' pour plus de détails.
R est un projet collaboratif avec de nombreux contributeurs.
Tapez 'contributors()' pour plus d'information et
'citation()' pour la façon de le citer dans les publications.
Tapez 'demo()' pour des démonstrations, 'help()' pour l'aide
en ligne ou 'help.start()' pour obtenir l'aide au format HTML.
Tapez 'q()' pour quitter R.
> if( is.element("TeXmacs", installed.packages()[,1]) ) {library( TeXmacs); }
TeXmacs to R interface version 0.16
Run start.view() to use graphics without x11()
Use t.help.start() to view R documentation pages separately. Otherwise they are displayed in the buffer.
Notice: if you want density graphs produced with image() to render much faster, use the option useRaster=T
TeXmacs to R interface version 0.16
Attachement du package : ‘TeXmacs'
The following object is masked from ‘package:utils':
?
> if( !is.element("TeXmacs", installed.packages()[,1]) ||
+ !exists("TeXmacsR.version",where = as.environment("package:TeXmacs")) ||
+ as.numeric( get("TeXmacsR.version",envir=as.environment("package:TeXmacs")
<R.version",envir=as.environment("package:TeXmacs")))
+ <0.15 ) {
+ ˇcur.dir=getwd(); setwd( tempdir() );
+ ˇsystem(paste("R CMD build ",Sys.getenv("TEXMACS_PATH"),"/plugins/r/r/TeXmac
< ",Sys.getenv("TEXMACS_PATH"),"/plugins/r/r/TeXmacs",sep="") );
+ ˇpack=list.files(pattern="TeXmacs.*gz");
+ install.packages(pack,repos=NULL,type="source");ˇ
+ ˇlibrary(TeXmacs) }
-------------------------------------------------
> sqrt(64)
sqrt(64)
[1] 8
Le 26/03/2017 à 04:26, Jiezhe Wang a écrit :
There is a problem for R plugin in TeXmacs. If you build TeXmacs yourself, you will find that an error occurs during the building. However, it does not terminate the build session.
An attempt to fix it is in the attachment. I see it works, but I really don't know why it works...
Alternatively, you can install the texmacs-svn package in the AUR, which includes this patch and others.
On 03/26/2017 04:45 AM, Michael Shea wrote:
Frustrated with TeXmacs poor plugin support in Windows, I installed Arch Linux via VMware. I need to use R for a project but an R session session hangs at Busy. debug console just says "cannot start tm_r".
R is installed in /usr/bin and that is in the PATH.
Any ideas.
<TeXmacs|1.99.5> <style|<tuple|generic|french>> <\body> <\session|r|default> <\unfolded-io> <with|color|red|\<gtr\> > <|unfolded-io> sqrt(64) <|unfolded-io> sqrt(64) [1] 8 </unfolded-io> <\unfolded-io> <with|color|red|\<gtr\> > <|unfolded-io> getwd() <|unfolded-io> getwd() [1] "/home/pi" </unfolded-io> <\unfolded-io> <with|color|red|\<gtr\> > <|unfolded-io> a=2; b = 4; c = 6 <|unfolded-io> a=2; b = 4; c = 6 </unfolded-io> <\unfolded-io> <with|color|red|\<gtr\> > <|unfolded-io> cat(a,b,c) <|unfolded-io> cat(a,b,c) </unfolded-io> <\unfolded-io> <with|color|red|2 4 6\<gtr\> > <|unfolded-io> mytest = function() { \ \ \ \ xv = seq(0,1,by = 0.25) \ \ \ \ yv = sin(xv) \ \ \ \ cat(" xv = ",xv," yv = ",yv) \ \ \ \ zv = exp(yv) \ \ \ \ cat(" zv = ",zv) \ \ \ \ xv = (1:4)/4 \ \ \ \ cat(" xv = ", xv) \ \ \ \ yv = sin(xv) \ \ \ \ cat( " yv = ", yv ," \\n\\n")} <|unfolded-io> mytest = function() { + \ \ \ \ xv = seq(0,1,by = 0.25) + \ \ \ \ yv = sin(xv) + \ \ \ \ cat(" xv = ",xv," yv = ",yv) + \ \ \ \ zv = exp(yv) + \ \ \ \ cat(" zv = ",zv) + \ \ \ \ xv = (1:4)/4 + \ \ \ \ cat(" xv = ", xv) + \ \ \ \ yv = sin(xv) + \ \ \ \ cat( " yv = ", yv ," \\n\\n")} </unfolded-io> <\unfolded-io> <with|color|red|\<gtr\> > <|unfolded-io> mytest() <|unfolded-io> mytest() \ xv = \ 0 0.25 0.5 0.75 1 \ yv = \ 0 0.247404 0.4794255 0.6816388 0.841471 zv = \ 1 1.280696 1.615146 1.977115 2.319777 xv = \ 0.25 0.5 0.75 1 yv = \ 0.247404 0.4794255 0.6816388 0.841471 \ \; </unfolded-io> <\input> <with|color|red|\<gtr\> > <|input> \; </input> </session> </body> <initial|<\collection> </collection>>
- [TeXmacs] R Plugin, Michael Shea, 03/25/2017
- Re: [TeXmacs] R Plugin, Jiezhe Wang, 03/26/2017
- Message not available
- Re: [TeXmacs] R Plugin, Henri Girard, 03/26/2017
- Re: [TeXmacs] R Plugin, Michael Shea, 03/27/2017
- Re: [TeXmacs] R Plugin, Henri Girard, 03/26/2017
- Message not available
- Re: [TeXmacs] R Plugin, Michael Shea, 03/27/2017
- Re: [TeXmacs] R Plugin, Jiezhe Wang, 03/26/2017
Archive powered by MHonArc 2.6.19.