Re: [R] New package Ryacas

From: Rob J Goedman <goedman_at_mac.com>
Date: Tue 17 Oct 2006 - 15:05:46 GMT

Simon,

 > library(Ryacas)
Loading required package: XML
 > yacas("Integrate(x) x")
[1] "Starting Yacas!"
Accepting requests from port 9734
expression(x^2/2)
 > yacas('Integrate(x) x')
expression(x^2/2)
 > yacas('Integrate(x)x')
expression(x^2/2)
 > yacas('Integrate(x)x;')
CommandLine(1) : Expecting ) closing bracket for sub-expression, but got ; instead
 >

The 'Accepting ...' message shows yacas was already running. Which is also the case
on your system (hence the socket already in use message). You can ignore that.
On Mac OS and I guess several other unix/linux environments, yacas will remain
running.

If you leave off the ";", it should work.

As this is quite Ryacas/yacas specific, for future messages I'll respond directly.

Regards,
Rob

On Oct 17, 2006, at 1:39 AM, Gabor Grothendieck wrote:

> Maybe there are timing problems using that setup with sockets? I
> once tried
> VMware (not with Ryacas but just to try it out) and found it slow
> as can
> be expected with an emulated environment. Since you have Windows XP
> just
> use the Windows version of Ryacas directly.
>
> On 10/17/06, Simon Blomberg <blomsp@ozemail.com.au> wrote:
>> Hi Gabor,
>>
>> I'm running Quantian (Debian) inside a VMware virtual machine, on a
>> Windows XP host.
>>
>> I installed the latest version of yacas from the source tarball. I
>> remembered to ./configure --enable-server to allow server
>> connections.
>> make and make install worked ok, after some fiddling. I checked
>> that the
>> yacas server option worked, by doing yacas --server 3333, and then
>> telnet'ing to 127.0.0.1 3333 to check. It worked fine. I installed
>> Ryacas. I then tried it out and got the following error:
>>
>>> library(Ryacas)
>> Loading required package: XML
>>> yacas('Integrate(x)x;')
>> [1] "Starting Yacas!"
>> Error in socketConnection(host = "127.0.0.1", port = 9734, server =
>> FALSE, :
>> unable to open connection
>> In addition: Warning message:
>> 127.0.0.1:9734 cannot be opened
>>> Accepting requests from port 9734
>>
>> I tried again (stubborn, I guess):
>>
>>> yacas('Integrate(x)x;')
>> [1] "Starting Yacas!"
>> Accepting requests from port 9734
>> YacasServer Could not bind to the socket
>> : Address already in use
>> /usr/local/lib/R/site-library/Ryacas/yacdir/R.ys(1) : File not found
>> CommandLine(1) : Expecting ) closing bracket for sub-expression, but
>> got x instead
>>
>> Any ideas where I may be going wrong? I don't know anything about
>> sockets. I've cross-posted to r-sig-debian. They may be interested.
>>
>> Cheers,
>>
>> Simon.
>>
>> --
>> Simon Blomberg, B.Sc.(Hons.), Ph.D, M.App.Stat.
>> Centre for Resource and Environmental Studies
>> The Australian National University
>> Canberra ACT 0200
>> Australia
>> T: +61 2 6125 7800 email: Simon.Blomberg_at_anu.edu.au
>> F: +61 2 6125 0757
>> CRICOS Provider # 00120C
>>
>> The combination of some data and an aching desire for
>> an answer does not ensure that a reasonable answer
>> can be extracted from a given body of data.
>> - John Tukey.
>>
>>
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed Oct 18 01:30:07 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 17 Oct 2006 - 16:30:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.