Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "rologpp"

Title:Simple interface to R
Rating:Not rated. Create the first rating!
Latest version:0.4
SHA1 sum:53cd6dbdf1f11d5a958fae18e10dc8d8f184a5ea
Author:Matthias Gondan <Matthias.Gondan@psy.ku.dk>

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.453cd6dbdf1f11d5a958fae18e10dc8d8f184a5ea18https://github.com/mgondan/rologpp.git

Access R from SWI-Prolog

  1. Please start R and install the two packages Rcpp and RInside. R> install.packages('Rcpp', 'RInside')
  2. Please start SWI-Prolog and then install the pack rologpp SWI> assert(prolog_pack:environment('R_LIBS_USER', X) :- getenv('R_LIBS_USER', X)). (This is needed if you installed the R packages in a local "user" directory)

    SWI> pack_install(rologp). (Please note that rologp is written with only one p)

    SWI> use_module(library(rologp)).

    SWI> r_eval(2+2, X).

Contents of pack "rologpp"

Pack contains 6 files holding a total of 51.3K bytes.