[R] Problems with CRAN package Ryacas

Gabor Grothendieck ggrothendieck at gmail.com
Tue Apr 10 02:38:12 CEST 2012


We have had Linux users that successfully used Ryacas but if you can't
get yacas to build on your particular system then you could try
running the Windows version under wine.  A Windows binary of yacas is
available so you won't have to build yacas.  I don't know if anyone
has tried that yet but its worth a try.

Another possibility is to try rsympy or rmathpiper (see introductory
paragraphs on Ryacas home page for links).

On Mon, Apr 9, 2012 at 8:00 PM, Kjetil Halvorsen
<kjetilbrinchmannhalvorsen at gmail.com> wrote:
> see below!
>
> On Mon, Apr 9, 2012 at 3:04 PM, Gabor Grothendieck
> <ggrothendieck at gmail.com> wrote:
>> On Mon, Apr 9, 2012 at 4:02 PM, Gabor Grothendieck
>> <ggrothendieck at gmail.com> wrote:
>>> On Mon, Apr 9, 2012 at 2:47 PM, Martin Maechler
>>> <maechler at stat.math.ethz.ch> wrote:
>>>> Apropos:
>>>>
>>>> I don't have the problems, the OP had, but on my ubuntu
>>>> notebook, Ryacas does not return expressions (just the strings),
>>>> and hence
>>>>
>>>>    as.expression( <yacas-result> )
>>>>
>>>> always gives NULL  and e.g. the   demo(Ryacas-Function)
>>>> also fails:
>>>>
>>>>  > yacas(expression(deriv(BurrCDF(x,c,k))))
>>>>  k*c*x^(c-1)*(x^c+1)^(-(k+1));
>>>>  > yy <- yacas(expression(deriv(BurrCDF(x,c,k))))
>>>>  > yy
>>>>  k*c*x^(c-1)*(x^c+1)^(-(k+1));
>>>>  > str(yy)
>>>>  List of 2
>>>>  $          : NULL
>>>>  $ YacasForm: chr "k*c*x^(c-1)*(x^c+1)^(-(k+1));"
>>>>  - attr(*, "class")= chr "yacas"
>>>>  >
>>>>
>>>> I have
>>>>
>>>> - yacas 1.2.2  (standard ubuntu package)
>>>
>>> The latest version of Ryacas on CRAN is 0.2-11
>>> http://cran.r-project.org/package=Ryacas
>>
>> and the version of yacas supported by Ryacas is:
>>
>>> yacas("Version()")
>> expression("1.0.63")
>>
>> The troubleshooting section on the home page that I referred to does
>> mention this.
>
> Thanks!
>
> I deinstalled the synaptic-installed yacas, downloaded yacas_1.0.63.tgz
> unpacked it , run
> ./configure --enable-server
> then did make
>
> But make does not terminate, it ends in error! I give the last few
> lines of output:
>
> rm -fr .libs/filescanner.la .libs/filescanner.* .libs/filescanner.*
> gcc -shared  filescanner.lo plugin.lo   -Wl,-soname -Wl,filescanner.so
> -o .libs/filescanner.so
> ar cru .libs/filescanner.a  filescanner.o plugin.o
> ranlib .libs/filescanner.a
> creating filescanner.la
> (cd .libs && rm -f filescanner.la && ln -s ../filescanner.la filescanner.la)
> make[3]: Leaving directory `/home/kjetil/yacas/yacas-1.0.63/plugins/filescanner'
> make[3]: Entering directory `/home/kjetil/yacas/yacas-1.0.63/plugins'
> make[3]: Nothing to be done for `all-am'.
> make[3]: Leaving directory `/home/kjetil/yacas/yacas-1.0.63/plugins'
> make[2]: Leaving directory `/home/kjetil/yacas/yacas-1.0.63/plugins'
> Making all in proteus
> make[2]: Entering directory `/home/kjetil/yacas/yacas-1.0.63/proteus'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/kjetil/yacas/yacas-1.0.63/proteus'
> Making all in manmake
> make[2]: Entering directory `/home/kjetil/yacas/yacas-1.0.63/manmake'
> source='manripper.cpp' object='manripper.o' libtool=no \
>        depfile='.deps/manripper.Po' tmpdepfile='.deps/manripper.TPo' \
>        depmode=gcc3 /bin/bash ../depcomp \
>        g++ -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall  -c -o manripper.o
> `test -f 'manripper.cpp' || echo './'`manripper.cpp
> manripper.cpp: In function ‘void GetBf(char*, int, FILE*)’:
> manripper.cpp:20:21: error: ‘strlen’ was not declared in this scope
> manripper.cpp: In function ‘void ProcessFile(char*)’:
> manripper.cpp:40:23: error: ‘strlen’ was not declared in this scope
> manripper.cpp:43:30: error: ‘strncmp’ was not declared in this scope
> manripper.cpp:57:25: error: ‘memset’ was not declared in this scope
> manripper.cpp:58:39: error: ‘memcpy’ was not declared in this scope
> manripper.cpp:78:27: error: ‘strlen’ was not declared in this scope
> manripper.cpp:81:25: error: ‘memset’ was not declared in this scope
> manripper.cpp:82:41: error: ‘memcpy’ was not declared in this scope
> make[2]: *** [manripper.o] Error 1
> make[2]: Leaving directory `/home/kjetil/yacas/yacas-1.0.63/manmake'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/kjetil/yacas/yacas-1.0.63'
> make: *** [all] Error 2
> kjetil at kjetil:~/yacas/yacas-1.0.63$
>
> Kjetil
>
>
>
>>
>> --
>> Statistics & Software Consulting
>> GKX Group, GKX Associates Inc.
>> tel: 1-877-GKX-GROUP
>> email: ggrothendieck at gmail.com
>>
>> ______________________________________________
>> R-help at r-project.org 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.



-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



More information about the R-help mailing list