On Thu, 2008-04-24 at 22:50 +0100, William S Fulton wrote:
> Soeren Sonnenburg wrote:
> > On Tue, 2008-04-22 at 10:44 -0400, David Cottrell wrote:
> > > Doing:
> > >
> > > swig -c++ -v -r -o simpletest_wrap.cpp simpletest.i
> > > PKG_LIBS="simpletest.cpp" R CMD SHLIB simpletest_wrap.cpp
> >
> > I guess you use swig 1.3.34 and R2.6? Try swig 1.3.35 then!
> >
> > > yields the following reports
> > >
> > > simpletest_wrap.cpp:725:2: warning: #warning "R Swig currently fails on
> > > runtime for 2.6 and higher."
> > > simpletest_wrap.cpp:726:2: warning: #warning "Contact maintainer if you
> > > would like to help fix"
> > >
> > > Does this mean that R SWIG is not really functional yet?
> >
> > YMMV....
> ...
> > my experience so far is that swig + python & octave work nicely... I was
> > not successful with R, but just try it out ... I would be interested in
> > learning whether it works for you (or someone).
> >
> SWIG works fine with R <= 2.6, most of the test-suite works well. Not
> sure about 2.7, they seem to knock out new versions of R rather quickly
> and there were some non-backwards compatible changes going from 2.5 to 2.6.
Except for
- Checking testcase constants under r
- Checking testcase cpp_broken under r
- Checking testcase namespace_union under r
- Checking testcase nested_comment under r
- Checking testcase template_default_pointer under r
- Checking testcase template_expr under r
all tests run through on R 2.7 too (swig-svn version, my patch applied).
Regarding the changes from R2.5->2.7 the RVERSION25/26/27 makro taking
care of this only changes the way how strings are created - a one liner
change - I don't think that this will break anything.
But still R 2.7. is now the current stable which Rswig doesn't support.
However R & swig did not work for me (already crashing when only loading
the libs) but it might be that this is a bug in R 2.7... I am still
investigating...
Soeren
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user