# Passing array from sage to R and back again

Good Morning

I am trying to pass data from sage to R and then received the result back

```
y=asarray(y)
r.install_packages('"ismev"')
r.library('ismev')
gv=r.get_fit('y')
gv
```

I have tried various ways to do this but non of them work Has anyone else managed to do this?

Thanks for any help

By the way to get install_packages to work you need to do sage -f r from a terminal after installing sage. I think this could be added to the documentation.