On Sun, 25 Jan 2009, Joe Conway wrote:

Andreas Tille wrote:
On Fri, 23 Jan 2009, Dirk Eddelbuettel wrote:
| > You can work around this problem for your local installation by just
| > copying src/include/Rdevices.h into the plr source directory.  The
| > you can build the package for the moment.
|
| I have to revert this.

Yes, that was plain wrong.  R (upstream) changed their interface and
tightened this. It also affected things I maintain such as the RPy package.

It appears that you can simply delete from plr.h the line:
 #include "Rdevices.h"
It looks like the definition for KillAllDevices was the only thing being used, and I had already added
 #ifndef KillAllDevices
 ...
after R-2.7.0 came out.

I'll probably try to push out a new release in the next week or so, but if you could test this and let me know if it works I'd appreciate it.

The package builds with this change.

I only tried the first example from Ch 3 of the docs, namely http://www.joeconway.com/plr/doc/plr-funcs.html

CREATE OR REPLACE FUNCTION r_max (integer, integer) RETURNS integer AS '
    if (arg1 > arg2)
       return(arg1)
    else
       return(arg2)
' LANGUAGE 'plr' STRICT;

This works for me.

btsnp_test=# select * from r_max(1,24);
 r_max
-------
    24
(1 row)

I'll do further testing. If I see problems, should I email you directly, or the mailing list (which I am subscribed to)?

                                                        Regards, Faheem.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to