## Embedded R support
The [R project](https://www.r-project.org/) provides statistical computing and data vizualization. SWISH can access R through [Rserve](https://rforge.net/Rserve/). The *prototype* client for Rserve is available as the _pack_ [rserve_client](http://www.swi-prolog.org/pack/list?p=rserve_client). The GitHub repository [rserve-sandbox](https://github.com/JanWielemaker/rserve-sandbox) provides the matching Rserve server as a [Docker](https://www.docker.com/) specification.
The notebooks below explain the basics of using R from SWISH. You can test whether R is available from this server by running the query below.
- [Basic access to R from SWISH](example/Rbasics.swinb)
- [Exchanging R data frames](example/Rdataframe.swinb)
- [Downloading (graphics) files](example/Rdownload.swinb)
<- 'R.Version'().
### More elaborate examples
- [EM Clustering of the Iris Dataset](example/iris.swinb)
- [SIATEC pattern discovery in polyphonic music](example/siatec.swinb)