Skip to main content

REPL

You can start the REPL with vapour -repl.

REPL example

Each line you enter is transpiled to R and evaluated in an R session, variables persist between lines, results are printed as in the R console.

$ vapour -repl
Vapour 0.0.6
> let x: int = 1
> x + 1
[1] 2
warning

The REPL is in a very basic state:

  • input is read one line at a time, multi-line code (e.g.: functions) is not supported
  • code is not type checked, use the CLI or your editor for that
  • exit with Ctrl+D or Ctrl+C