hara.model.annex.spec-r

!.R

macro

(!.R & body)

+book+

+features+

+grammar+

+init+

+meta+

+template+

block

macro

def$.R

macro

(def$.R & body)

def.R

macro

(def.R & body)

defgen.R

macro

(defgen.R & body)

defglobal.R

macro

(defglobal.R & body)

defmacro.R

macro

(defmacro.R & body)

defptr.R

macro

(defptr.R & body)

defrun.R

macro

(defrun.R & body)

deftemp.R

macro

(deftemp.R & body)

r-map

(r-map m grammar mopts)

tf-defn

added in 3.0

(tf-defn [_ sym args & body])

function declaration for R

(tf-defn ’(defn hello x y)) => ’(def hello (fn x y))

(!.R (defn ^{:inner true} hello x y(+ x y)) (hello 1 2)) => 3

tf-df

added in 4.1

(tf-df [_ & args])

transforms (df {:a [1 2] :b [3 4]}) to data.frame(a=c(1,2), b=c(3,4))

tf-for-array

added in 4.0

(tf-for-array [_ [e arr] & body])

transform for for:array

tf-for-index

added in 4.0

(tf-for-index [_ [i [start end step]] & body])

transform for for:index

tf-for-iter

added in 4.0

(tf-for-iter [_ [e it] & body])

transform for for:iter

tf-for-object

added in 4.0

(tf-for-object [_ [[k v] m] & body])

transform for for:object

tf-formula

added in 4.1

(tf-formula [_ lhs rhs])

transforms (formula lhs rhs) to an R formula: lhs ~ rhs

tf-infix-if

added in 4.0

(tf-infix-if [_ expr & args])

transform for infix if

tf-library

added in 4.1

(tf-library [_ pkg])

transforms (library pkg) to library(ā€œpkgā€)