bugGNU TeXmacs - Bugs: bug #10739, R plugin not working "out of...


You are not allowed to post comments on this tracker with your current authentication level.

bug #10739: R plugin not working "out of the box" with R 2.x

Submitted by:  None
Submitted on:  Tue 19 Oct 2004 09:57:23 PM UTC  
Category:  Plugins Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  Joris van der Hoeven <vdhoeven>
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:
Release:  None Fixed Release:  None
Fixed Release: 

( Jump to the original submission)

Thu 28 Nov 2013 10:44:51 PM UTC, comment #11:

I cannot reproduce these bugs.

Joris van der Hoeven <vdhoeven>
Project AdministratorIn charge of this item.
Thu 28 Nov 2013 04:20:54 PM UTC, comment #10:

R works properly under Debian testing and TeXmacs (svn).

Francois Poulain <fpoulain>
Project Member
Sun 01 Jul 2012 08:23:47 PM UTC, comment #9:

Under Mac OS, the R plug-in is still broken.
At least, I cannot do 'demo()', for instance.

Joris van der Hoeven <vdhoeven>
Project AdministratorIn charge of this item.
Thu 05 Apr 2012 01:58:02 PM UTC, comment #8:

Here's a patch that implements the findings of my previous comments.
In linux this gives a working R plugin.

(file #25589)

Philippe Joyez <pjoyez>
Project Member
Thu 05 Apr 2012 12:09:36 PM UTC, comment #7:

More on my previous comment. Texmacs was not connecting to R because during compilation of texmacs there is an error (at least in linux) :

make[2]: entrant dans le répertoire « /tmp/src/plugins/r »
gcc -I../../src/System src/tm_r.c -o bin/tm_r -lutil
src/tm_r.c:24:18: error: util.h: Aucun fichier ou dossier de ce type
make[2]: [bin/tm_r] Erreur 1 (ignorée)

That error is easily overlooked as in the end you get "TeXmacs has been succesfully compiled", and furthermore texmacs still pretends to be launching tm_r even though it does not exist.

Once you figure this, the good news is that in tm_r.c you can just comment out (or delete)
#include <util.h>
and compilation will proceed without errors.

Then the fix in comment 2 essentially works, except that step 3 in unecessary, and that you further need to edit the Rd documentation file as explained in my previous comment (just put the second half (after \eof) of the Rd file in a TeXmacs2.Rd and R finds it OK).

Philippe Joyez <pjoyez>
Project Member
Tue 03 Apr 2012 09:30:18 PM UTC, comment #6:

The R plugin is still broken presently with texmacs and R 2.12.1 in linux.

I have not tried very long but from what I can see the fix in comment 2 is not working anymore as it yields errors. Apparently the /man/TeXmacs.Rd file is incorrect and should be split in two distinct files (at the \eof). But even doing that is not enough to get a working R session: When starting the session texmacs writes "Launching 'exec tm_r'" on the console, but soon after it displays the "dead" icon...

Too bad.

Philippe Joyez <pjoyez>
Project Member
Fri 20 Jan 2006 03:47:03 PM UTC, comment #5:

I'm currently taking an R programming course, and one of the topics we cover is making packages. I'm going to see if I can get the instructors to show me how to fix this for R 2.3.0.

M. Edward (Ed) Borasky <znmeb>
Sat 09 Apr 2005 04:19:34 PM UTC, comment #4:

This bug still exists in TeXmacs -- see attached document

M. Edward (Ed) Borasky <znmeb>
Sat 09 Apr 2005 04:17:03 PM UTC, comment #3:

This problem still exists with TeXmacs I've attached a document showing what happens -- all I did was insert an R session into a new document.

M. Edward (Ed) Borasky <znmeb>
Sun 21 Nov 2004 08:27:15 PM UTC, comment #2:

I have found a workaround. I have only tested this with TeXmacs and R 2.0.0 and R 2.0.1.

1. Find out where TeXmacs is installed. This will have been determined by the "--prefix" option during "configure". I think the default is "/usr/local", but my Gentoo systems put it in "/usr".

2. As "root", do

cd share/TeXmacs/plugins/r/r/

3. Edit the file "TeXmacs/DESCRIPTION". Remove the line at the bottom starting with "Built:".

4. Do

R CMD build --force TeXmacs
R CMD INSTALL -l `pwd` TeXmacs_0.1.tar.gz

M. Edward (Ed) Borasky <znmeb>
Mon 08 Nov 2004 02:50:52 AM UTC, comment #1:

I am running into the same thing. I know a little more about what's happening, but I haven't yet figured out how to fix it.

When the R team moved to R 2.0.0, they made some rather extensive changes to the way R libraries and packages work. As a consquence, packages that worked with older versions of R need to be rebuilt to work with R 2.0.0. The details can be found in the R documentation at




I don't know enough about TeXmacs and how it accesses R to fix this myself, although I do plan to dig into the source and see if I can find a workaround. I try to stay "bleeding edge" on Atlas (linear algebra library), R, TeXmacs and Maxima, so getting a solution to this is of interest to me.

Ed Borasky
-email is unavailable-

M. Edward (Ed) Borasky <znmeb>
Tue 19 Oct 2004 09:57:23 PM UTC, original submission:

trying to use TeXmacs with R:

> Error in library(TeXmacs, lib.loc = "/usr/share/TeXmacs/plugins/r/r/") :

`TeXmacs` is not a valid package -- installed < 2.0.0?

have R 2.0.0 installed - with 1.9.1 it worked, but with 2.0.0 i get always this error and texmacs is not usable for R



Attached Files
file #25589:  r_patch added by pjoyez (4KiB - application/octet-stream - trying to fix R plugin)
file #520:  R-session.tm added by znmeb (1KiB - application/octet-stream - Error message from inserted R session)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by pjoyez (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-28 vdhoeven StatusReady For Test => Fixed
        Assigned toNone => vdhoeven
        Open/ClosedOpen => Closed
    2012-04-05 pjoyez Attached File- => Added r_patch, #25589
        StatusConfirmed => Ready For Test
    2012-04-05 pjoyez SummaryR 2.0.0 not supported => R plugin not working "out of the box" with R 2.x
    2012-04-03 pjoyez StatusNone => Confirmed
    2006-04-26 ehmsen Carbon-Copy- => Added ehmsen
    2005-04-09 znmeb Attached File- => Added R-session.tm, #2394
    2004-11-08 znmeb Carbon-Copy- => Added znmeb --AT-- cesmail --DOT-- net

    Back to the top

    Powered by Savane 3.3