knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

octaver

CRAN status Lifecycle: experimental R-CMD-check Codecov test coverage

The goal of octaver is to provide an interface to Octave

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("kvasilopoulos/octaver")

Session

library(octaver)
find_octave()

## basic example code
pr <- OctaveSession$new()
pr$eval("2+2")

pr$eval("A = 2+2")
pr$eval("A")

pr$kill()

REPL

OctaveREPL$new()

Knitr engine

{octave eval = TRUE} A = 1; A

API

Various .m scripts

m_

Run

oct_run(): oct_addpath():

Session & Repl

oct_session(): oct_repl():

Knitr

set_oct_engine():

Read & Write

write_mat(): read_mat():

Installation helpers

install_oct(): install_pkg():

Other helpers

has_octave(): octave_path(): find_octave(): list_pkgs():



kvasilopoulos/octaver documentation built on Jan. 27, 2021, 12:20 a.m.