The goal of octaver is to provide an interface to Octave
You can install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("kvasilopoulos/octaver")
library(octaver)
find_octave()
#> octave-cli
#> "C:\\Octave\\OCTAVE~1.0\\mingw64\\bin\\OCC5B3~1.EXE"
## basic example code
pr <- OctaveSession$new()
pr$eval("2+2")
#> ans = 4
pr$eval("A = 2+2")
#> A = 4
pr$eval("A")
#> A = 4
pr$kill()
#> Octave Session, finished, pid 10996.
A = 1;
A
#> A
#> = 1
m_
oct_run(): oct_addpath():
oct_session(): oct_repl():
set_oct_engine():
write_mat(): read_mat():
install_oct(): install_pkg():
has_octave(): octave_path(): find_octave(): list_pkgs():