Re: R.pl hangs in debian linux

"Bob Ly" <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
Good Day Nicos,

My apologies for a late response. I tried pack(real). This was the  
error message I got.

ERROR: /usr/local/lib/swipl-6.5.2/pack/real/prolog/real.pl:1086:
	'$open_shared_object'/3: libR.so: cannot open shared object file: No  
such file or directory
Warning: /usr/local/lib/swipl-6.5.2/pack/real/prolog/real.pl:1086:
	Goal (directive) failed: real:initialization(start_r,now)

But I got R.pl to work. If I am understanding correctly the main  
difference between R.pl and real.pl is real.pl can interchange data  
between the two programs? Whereas, R.pl is more like a wrapper call  
around R to manipulate data?

Thank you again for your help.

Best Regards,


Bob Ly




Quoting "Nicos Angelopoulos" <[email protected]>:

>
> Dear Bob,
>
>
> On Wed, 06 Nov 2013 22:14:53 -0600
> "Bob Ly" <[email protected]> wrote:
>
>> So I've been trying the R package from Swipl Git, but the example
>> given in the package just hangs.
>>
>
> 	it looks like R.pl hangs on waiting input from the R executable,
> 	as R.pl has n't changed in a long while (not by me at any rate),
> 	it is likely that recent R versions spew out things differently to  
> how older versions did.
>         the mode of operation of R.pl is that it starts an R process  
> as a slave
>         reading/writing from/to it via the io streams.
>
> 	I think R.pl should come with a warning that there is a more
> 	modern package available.
>
> 	are you aware of pack(real) ?
>
> 	you can install with
>
> 	?- pack_install( real ).
>
> 	?- pack_rebuild( real ).
>
>         test with
>
>          ?- [pack(real/examples/for_real)].
>          ?- edit( pack(real/examples/for_real) ).
>          ?- for_real.
>
>
> See
> http://www.swi-prolog.org/pack/list?p=real
> &
> http://stoics.org.uk/~nicos/sware/real/
>
>
> Hope it helps,
>
> Nicos Angelopoulos
> ---
> http://stoics.org.uk/~nicos
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.