1 Getting started
1.1 Installation
rtemis.server is available from R-universe. It depends on rtemis, which requires R 4.4.0 or later.
install.packages(
"rtemis.server",
repos = c("https://rtemis-org.r-universe.dev", "https://cloud.r-project.org")
)The packages that fit each algorithm are installed separately, in the same R library.
1.2 Start the server
rtemis.server::serve()serve() prints its address, the allowed origins, and a connection token, then occupies the R session until it is interrupted with Ctrl-C:
✔ rtemislive listening on ws://127.0.0.1:5757
ℹ Allowed origins: https://live.rtemis.org, http://localhost:3000, http://127.0.0.1:3000
ℹ Connection token: ce25-6abe-8e16-04c1
The server also runs from a terminal:
Rscript -e 'rtemis.server::serve()'Each call to serve() generates a new token unless token is set.
1.3 Connect rtemislive
- Open live.rtemis.org and select Settings, then Machine learning.
- Enable Machine learning via local rtemis.server.
- Keep the WebSocket URL
ws://127.0.0.1:5757/, paste the token, and select Connect.
The status reads Authenticated when the connection is ready.
1.4 Launch both together
With Node.js 18 or later, the @rtemis/launch package starts the server and opens rtemislive with the connection already made:
npx @rtemis/launch