From: Ryo Furue <furue@xxxxxxxxxx>
To: j_karmacharya@xxxxxxxxx
Cc: ferret_users@xxxxxxxx
Sent: Friday, February 15, 2013 9:14 PM
Subject: Re: [ferret_users] Re: Calling R in ferret
Jagadish,
>I attempted to call a normality test in R from within ferret without success.
>
>yes? list strfloat(spawn("echo 'cat(shapiro.test(`v1`))' | R --slave --vanilla"))
> **ERROR: invalid command: grave accent doesnt evaluate to scalar
What argument(s) does shapiro.test() require? (I not nothing about R.)
The error you get is exactly what the error message states.
The grave accent evaluation works only on a scalar:
yes? let v = {1, 4, 9, 16}
yes? say `v`
**ERROR: invalid command: grave accent doesnt evaluate to scalar
v
yes? let u = 2
yes? say `u`
!-> MESSAGE/CONTINUE 2
2
yes?
Ryo