(get-r)
(get-r host port)
Create a RConnection with args ex:
Create a RConnection with args ex:
(r-eval r expression)
Eval expression in the R engine. Convert the return value from JRI/R to Clojure
Eval expression in the R engine. Convert the return value from JRI/R to Clojure
(r-eval-no-catch r expression)
Eval expression in the R engine. Will not catch any exceptions that happen during evaluation
Eval expression in the R engine. Will not catch any exceptions that happen during evaluation
(r-eval-raw r expression)
Eval expression in the R engine. Just return the raw JRI/R wrapper, don't convert to Clojure object
Eval expression in the R engine. Just return the raw JRI/R wrapper, don't convert to Clojure object
(r-get r r-name)
Retrieve the value with this name in the R engine
Retrieve the value with this name in the R engine
(r-get-raw r r-name)
Retrieve the value with this name in the R engine. Do not convert from JRI to Clojure type.
Retrieve the value with this name in the R engine. Do not convert from JRI to Clojure type.
(r-inspect r obj)
Runs str(object) on the R side, capturing console output. Runs println on returned Strings
Runs str(object) on the R side, capturing console output. Runs println on returned Strings
(r-install-CRAN r package)
(r-install-CRAN r package repo)
Tries to install the provided package uusing the optionally provided repository or the master CRAN repository
Tries to install the provided package uusing the optionally provided repository or the master CRAN repository
(r-set! r r-name value)
(r-set-raw! r r-name value)
Assign r-name to value within the R engine
Assign r-name to value within the R engine
(r-source r r-file)
(r-transform in-val r-file)
(r-transform r in-val r-file)
Executes a given R scipt file in the R engine. It sets the given value as variable in_ in R process and returns variable out_ at the end.
Executes a given R scipt file in the R engine. It sets the given value as variable in_ in R process and returns variable out_ at the end.
(r-try-parse-eval r expression)
Eval expression in the R engine, wrapped (on the R side) in try/catch. Will catch errors on the R side and convert to Exception and throw
Eval expression in the R engine, wrapped (on the R side) in try/catch. Will catch errors on the R side and convert to Exception and throw
(r-void-eval r expression)
Eval the exp in R, without returning any output
Eval the exp in R, without returning any output
(start-rserve)
(start-rserve port init-r)
Boot up RServe on default port in another process. Returns a map with a java.lang.Process that can be 'destroy'ed
Boot up RServe on default port in another process. Returns a map with a java.lang.Process that can be 'destroy'ed
(try-r-eval r rexp)
(with-r-eval r & forms)
Evaluate forms that are string using r-eval, otherwise, just eval Clojure code normally
Evaluate forms that are string using r-eval, otherwise, just eval Clojure code normally
(with-r-eval-no-catch r & forms)
Evaluate forms that are string using r-eval-no-catch, otherwise, just eval clojure code normally
Evaluate forms that are string using r-eval-no-catch, otherwise, just eval clojure code normally
(with-r-eval-raw r & forms)
Evaluate forms that are string using r-eval-raw, otherwise, just eval Clojure code normally
Evaluate forms that are string using r-eval-raw, otherwise, just eval Clojure code normally
(with-r-try-parse-eval r & forms)
Evaluate forms that are string using r-try-parse-eval, otherwise just eval Clojure code normally
Evaluate forms that are string using r-try-parse-eval, otherwise just eval Clojure code normally
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close