Pack Ann: Real - 1.0.0
Nicos Angelopoulos (Univ of York) <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <20131210175207.2584c177@ampelos> |
A new version for pack real has been uploaded to the SWI server.
Real allows SWI to connect to the R statistical software and
call R functions on Prolog data.
This release supports some of the new features in SWI v7.
In particularly, strings and 0-arity compounds.
For free you get '.' in R identifiers, so there is no longer any need for the '..' notation.
These changes result to an even tighter integration.
Old syntax is still valid.
new: <- plot( c(1,2,3), main="proper strings")
old: <- plot( c(1,2,3), main=+"integer lists" )
new: <- dev.off()
old: <- dev..off(.)
Maps and functional application will probably be supported soon.
If you compile SWI from sources, real 1.0.0 should compile fine for both v6 and v7.
It is more than likely that the MS Windows binaries included, only work with v7.
To those unfamiliar with the packs system, you can install real by typing
?- pack_install( real ).
To test:
?- [library(real)].
?- [pack(real/examples/for_real)].
?- for_real.
To see the source file with the examples:
?- edit( pack(real/examples/for_real) ).
Real homepage:
http://stoics.org.uk/~nicos/sware/real
On behalf of real's authors,
Nicos Angelopoulos
---
http://stoics.org.uk/~nicos/