Tree [67c44a] master /
 History

HTTPS access


File Date Author Commit
 doc 2014-06-06 Nicos Angelopoulos Nicos Angelopoulos [629ad4] Fixed x <- list(). on Swi 7.
 examples 2015-10-13 Vítor Santos Costa Vítor Santos Costa [7fc047] moduless real
 .gitignore 2012-01-31 Jan Wielemaker Jan Wielemaker [b17ec1] Provide SWI-Prolog package documentation
 CMakeLists.txt 2015-08-07 Vítor Santos Costa Vítor Santos Costa [e9135f] fixes
 LICENSE 2012-02-01 Vítor Santos Costa Vítor Santos Costa [355121] add Perl license.
 Makefile.in 2014-12-14 Vítor Santos Costa Vítor Santos Costa [e0a566] initial support for cmake
 Makefile_so 2014-04-21 Nicos Angelopoulos Nicos Angelopoulos [e4501b] Added file Makefile_so which is used for cross...
 README.md 2015-10-13 Vítor Santos Costa Vítor Santos Costa [7fc047] moduless real
 config.h.cmake 2015-10-13 Vítor Santos Costa Vítor Santos Costa [7fc047] moduless real
 configure.in 2014-11-28 Vítor Santos Costa Vítor Santos Costa [9a59a4] fix typo
 install-sh 2013-07-03 nicos nicos [56b08b] Added + as un paranthesised operator (line 786,...
 pack.pl 2014-03-24 Nicos Angelopoulos Nicos Angelopoulos [dca8eb] Version 1.1 pack.pl, updated
 pltotex.pl 2012-01-31 Jan Wielemaker Jan Wielemaker [b17ec1] Provide SWI-Prolog package documentation
 rconfig.h.cmake 2014-12-14 Vítor Santos Costa Vítor Santos Costa [6d5f9b] initial support for cmake
 rconfig.h.in unknown
 real.c 2015-10-13 Vítor Santos Costa Vítor Santos Costa [7fc047] moduless real
 real.doc 2014-05-17 Vítor Santos Costa Vítor Santos Costa [f39bf5] doxy support
 real.h 2014-05-17 Vítor Santos Costa Vítor Santos Costa [f39bf5] doxy support
 real.pl 2015-10-13 Vítor Santos Costa Vítor Santos Costa [7fc047] moduless real

Read Me

Real

Real is a c-based interface for connecting R to Prolog.

YAP introduces a development version of real, developed to experiment
with the internals of the implementation of R. It includes major
changes and is likely to be much less stable than the version
maintained by Nicos ANgelopoulos. We refer to the version herein as
'realC' and describe the main novelties vs the version described
in~\cite{}. Their major differences:

  • Most of realC is written in C, instead of aa a Prolog string
    generator. The C code respects the SWI-Prolog fli interface and
    should work both in YAP and in SWI-Prolog.

  • realC uses Prolog atoms to represent real variables. R sequences
    of characters are represented as Prolog strings (not as lists of
    character codes). The atoms true and false indicate boolean
    constants.

    By default, YAP represents sequences of codes using double
    quotes, and strings by back quotes. Please consult the
    documentation o the ISO-Prolog flag double_quotes if you using
    prefer reading double-quote strings as Prolog string.

  • Free variables can be used to represent missing
    arguments,ie. `a[_,"G23"] would represent the column "G23".

  • All recent versions of real support the common syntax extensions
    for [], (), thus realC allows writing `a[[2]] <- f().

  • YAP allows A.B to be interpreted as [A|B]. This version takes
    advantage of this implementation quirk, and allows one to write
    expressions such as a.b[2] <- f.g().

  • The left-hand side msy be:

    • a ground unary term, assumed to be an attribute
    • an index
    • an R variable
    • a logic variable, or other Prolog term: in this case it will be
      unified with the result of evaluating the right-hamd side.
      Yap
      ?- [examples/for_real].
      ?- for_real.

Nicos Angelopoulos and Vitor Santos Costa
December, 2012.

Updates: Nicos Angelopoulos
Dec. 2013,
March, 2014

Updates: Vitor Santos Costa
Dec. 2015

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks