scicloj.metamorph.ml.r

add-clojisr-dependency

(add-clojisr-dependency classloader-or-nil)

Adds dynamically clojisr to classpath using pomegranate. This might not work in all situations

add-opencpu-dependency

(add-opencpu-dependency classloader-or-nil)

Adds dynamically opencpu-clj to classpath using pomegranate. This might not work in all situations

add-renjin-deps

(add-renjin-deps classloader-or-nil)

Adds dynamically renjin to classpath using pomegranate. This might not work in all situations

pretty

(pretty s opts impl)

Compute pretty breaks using R function base::pretty.

Parameters:

Each implementation requires dependencies to be added:

Returns seq of the breaks, which R considers ‘pretty’

Examples

Use wit rejin

(pretty (range 0 11) {:n 7} :renjin)
;;=> (0 2 4 6 8 10)

Use wit opencpu

(pretty (range 0 1 0.1) {:n 5} :ocpu)
;;=> (0 0.2 0.4 0.6 0.8 1)