Common Lisp Package: RCL

README:

FUNCTION

Public

R (&REST ARGS)

Call r% and decode the result

R% (&REST ARGS)

Apply the first argument to rest in the R environment (returns r-pointer)

Undocumented

R-INIT

R-QUIT

Private

%DISABLE-RCL-SYNTAX

Internal function used to restore previous readtable.

%ENABLE-RCL-SYNTAX

Internal function used to enable reader syntax and store current readtable on stack.

DEVICE-DETAILS (TYPE)

Returns for known types :ps, :pdf, :png, :jp[e]g, :xfig, :pictex a pair function,extension

R%-PARSE-EVAL (STRING)

Parse and evaluate the string in the R environment (returns r-pointer)

R%-SYMBOL (NAME)

Intern the symbol in the R image

R%-VALUES (&REST ARGS)

Like r%, but returning output and messages as additional value

R%-VARIABLE (NAME)

Find the variable in the R image

R-FUNCALL (FUNCTION &REST ARGS)

Call the function in the R image

R-FUNCTION (NAME)

Find the function in the R image

R-PARSE-EVAL (STRING)

Call r%-parse-eval and decode the result

R-SYMBOL (NAME)

Intern the symbol in the R image

R-VALUES (&REST ARGS)

Call r%-values and decode the principal value

R-VARIABLE (NAME)

Find the variable in the R image

RCL-LIST-READER (STREAM CHAR)

The reader function for the RCL [] notation.

READ-AND-PARSE-RCL-TOKEN (STREAM)

Reads a token like "_print " with READ-RCL-TOKEN and returns the R funcion to call, and the lisp funcion used to do so (r o r%).

READ-RCL-TOKEN (STREAM)

Tries to emulate how the Lisp reader reads a token with standard syntax, but is case-sensitive. Returns a string.

WHITESPACEP (CHR)

Tests whether a character is whitespace.

Undocumented

%VAR-ACCESSOR-*R-CSTACKLIMIT*

SETF%VAR-ACCESSOR-*R-CSTACKLIMIT* (VALUE)

%VAR-ACCESSOR-*R-DIMSYMBOL*

SETF%VAR-ACCESSOR-*R-DIMSYMBOL* (VALUE)

%VAR-ACCESSOR-*R-GLOBALENV*

SETF%VAR-ACCESSOR-*R-GLOBALENV* (VALUE)

%VAR-ACCESSOR-*R-INPUTHANDLERS*

SETF%VAR-ACCESSOR-*R-INPUTHANDLERS* (VALUE)

%VAR-ACCESSOR-*R-INTERACTIVE*

SETF%VAR-ACCESSOR-*R-INTERACTIVE* (VALUE)

%VAR-ACCESSOR-*R-NAMESSYMBOL*

SETF%VAR-ACCESSOR-*R-NAMESSYMBOL* (VALUE)

%VAR-ACCESSOR-*R-NILVALUE*

SETF%VAR-ACCESSOR-*R-NILVALUE* (VALUE)

%VAR-ACCESSOR-*R-SIGNALHANDLERS*

SETF%VAR-ACCESSOR-*R-SIGNALHANDLERS* (VALUE)

%VAR-ACCESSOR-*R-UNBOUNDVALUE*

SETF%VAR-ACCESSOR-*R-UNBOUNDVALUE* (VALUE)

ATTRIBUTES-LIST (LIST)

DEBUG-INFO

DEBUG-SEXPREC (SEXP)

DISABLE-SIGNAL-HANDLING

DISABLE-STACK-CHECKING

END-RMAINLOOP

ENSURE-NON-INTERACTIVE

EXPM1 (X)

GET-DATA-INTEGERS (SEXP)

GET-DATA-REALS (SEXP)

GET-DATA-SEXPS (SEXP)

GET-DATA-STRINGS (SEXP)

LISP-TO-R (X)

MAKE-R-POINTER (PTR)

R-GC

R-OBJ-P (THING)

R-POW (X Y)

R-POW-DI (X I)

R-TRYEVAL (EXPR RHO ERROR)

R-TYPE-DECODE (N)

RF-ALLOCVECTOR (TYPE LENGTH)

RF-BESSEL-I (X NU EXPO)

RF-BESSEL-J (X NU)

RF-BESSEL-K (X NU EXPO)

RF-BESSEL-Y (X NU)

RF-BETA (A B)

RF-CHOOSE (A B)

RF-DBETA (X A B GIVE-LOG)

RF-DBINOM (X N P GIVE-LOG)

RF-DCAUCHY (X LOCATION SCALE GIVE-LOG)

RF-DCHISQ (X DF GIVE-LOG)

RF-DEXP (X SCALE GIVE-LOG)

RF-DF (X N1 N2 GIVE-LOG)

RF-DGAMMA (X SHAPE SCALE GIVE-LOG)

RF-DGEOM (X P GIVE-LOG)

RF-DHYPER (X NR NB N GIVE-LOG)

RF-DIGAMMA (X)

RF-DLNORM (X LOGMEAN LOGSD GIVE-LOG)

RF-DLOGIS (X LOCATION SCALE GIVE-LOG)

RF-DNBETA (X A B LAMBDA GIVE-LOG)

RF-DNBINOM (X N P GIVE-LOG)

RF-DNCHISQ (X DF LAMBDA GIVE-LOG)

RF-DNF (X N1 N2 NCP GIVE-LOG)

RF-DNORM4 (X MU SIGMA GIVE-LOG)

RF-DNT (X DF DELTA GIVE-LOG)

RF-DPOIS (X LAMBDA GIVE-LOG)

RF-DSIGNRANK (X N GIVE-LOG)

RF-DT (X N GIVE-LOG)

RF-DUNIF (X A B GIVE-LOG)

RF-DWEIBULL (X SHAPE SCALE GIVE-LOG)

RF-DWILCOX (X M N GIVE-LOG)

RF-ENDEMBEDDEDR (FATAL)

RF-EVAL (EXPR RHO)

RF-FINDFUN (FUN RHO)

RF-FINDVAR (VAR RHO)

RF-FMAX2 (X Y)

RF-FMIN2 (X Y)

RF-FPREC (X DIGITS)

RF-FROUND (X DIGITS)

RF-FSIGN (X Y)

RF-FTRUNC (X)

RF-GAMMAFN (X)

RF-IMAX2 (X Y)

RF-IMIN2 (X Y)

RF-INITEMBEDDEDR (ARGC ARGV)

RF-INITIALIZE-R (ARGC ARGV)

RF-INSTALL (STR)

RF-LBETA (A B)

RF-LCHOOSE (A B)

RF-LGAMMA1P (X)

RF-LGAMMAFN (X)

RF-LOG1PMX (X)

RF-LOGSPACE-ADD (LOGX LOGY)

RF-LOGSPACE-SUB (LOGX LOGY)

RF-MKCHAR (STRING)

RF-MKSTRING (STRING)

RF-PBETA (X A B LOWER-TAIL GIVE-LOG)

RF-PBINOM (X N P LOWER-TAIL GIVE-LOG)

RF-PCAUCHY (X LOCATION SCALE LOWER-TAIL GIVE-LOG)

RF-PCHISQ (X DF LOWER-TAIL GIVE-LOG)

RF-PENTAGAMMA (X)

RF-PEXP (X SCALE LOWER-TAIL GIVE-LOG)

RF-PF (X N1 N2 LOWER-TAIL GIVE-LOG)

RF-PGAMMA (X SHAPE SCALE LOWER-TAIL GIVE-LOG)

RF-PGEOM (X P LOWER-TAIL GIVE-LOG)

RF-PHYPER (X NR NB N LOWER-TAIL GIVE-LOG)

RF-PLNORM (X LOGMEAN LOGSD LOWER-TAIL GIVE-LOG)

RF-PLOGIS (X LOCATION SCALE LOWER-TAIL GIVE-LOG)

RF-PNBETA (X A B LAMBDA LOWER-TAIL GIVE-LOG)

RF-PNBINOM (X N P LOWER-TAIL GIVE-LOG)

RF-PNCHISQ (X DF LAMBDA LOWER-TAIL GIVE-LOG)

RF-PNF (X N1 N2 NCP LOWER-TAIL GIVE-LOG)

RF-PNORM-BOTH (X CUM CCUM LOWER-TAIL LOG-P)

RF-PNORM5 (X MU SIGMA LOWER-TAIL GIVE-LOG)

RF-PNT (X DF DELTA LOWER-TAIL GIVE-LOG)

RF-PPOIS (X LAMBDA LOWER-TAIL GIVE-LOG)

RF-PROTECT (EXPR)

RF-PSIGAMMA (X DERIV)

RF-PSIGNRANK (X N LOWER-TAIL GIVE-LOG)

RF-PT (X N LOWER-TAIL GIVE-LOG)

RF-PTUKEY (X RR CC DF LOWER-TAIL GIVE-LOG)

RF-PUNIF (X A B LOWER-TAIL GIVE-LOG)

RF-PWEIBULL (X SHAPE SCALE LOWER-TAIL GIVE-LOG)

RF-PWILCOX (X M N LOWER-TAIL GIVE-LOG)

RF-QBETA (P A B LOWER-TAIL LOG-P)

RF-QBINOM (P N PP LOWER-TAIL LOG-P)

RF-QCAUCHY (P LOCATION SCALE LOWER-TAIL LOG-P)

RF-QCHISQ (P DF LOWER-TAIL LOG-P)

RF-QEXP (P SCALE LOWER-TAIL LOG-P)

RF-QF (P N1 N2 LOWER-TAIL LOG-P)

RF-QGAMMA (P SHAPE SCALE LOWER-TAIL LOG-P)

RF-QGEOM (P PP LOWER-TAIL LOG-P)

RF-QHYPER (P NR NB N LOWER-TAIL LOG-P)

RF-QLNORM (P LOGMEAN LOGSD LOWER-TAIL LOG-P)

RF-QLOGIS (P LOCATION SCALE LOWER-TAIL LOG-P)

RF-QNBINOM (P N PP LOWER-TAIL LOG-P)

RF-QNCHISQ (P DF LAMBDA LOWER-TAIL LOG-P)

RF-QNF (P N1 N2 NCP LOWER-TAIL LOG-P)

RF-QNORM5 (P MU SIGMA LOWER-TAIL LOG-P)

RF-QNT (P DF DELTA LOWER-TAIL LOG-P)

RF-QPOIS (P LAMBDA LOWER-TAIL LOG-P)

RF-QSIGNRANK (P N LOWER-TAIL LOG-P)

RF-QT (P N LOWER-TAIL LOG-P)

RF-QTUKEY (P RR CC DF LOWER-TAIL LOG-P)

RF-QUNIF (P A B LOWER-TAIL LOG-P)

RF-QWEIBULL (P SHAPE SCALE LOWER-TAIL LOG-P)

RF-QWILCOX (P M N LOWER-TAIL LOG-P)

RF-RBETA (A B)

RF-RBINOM (N P)

RF-RCAUCHY (LOCATION SCALE)

RF-RCHISQ (DF)

RF-REXP (SCALE)

RF-RF (N1 N2)

RF-RGAMMA (SHAPE SCALE)

RF-RGEOM (P)

RF-RHYPER (NR NB N)

RF-RLNORM (LOGMEAN LOGSD)

RF-RLOGIS (LOCATION SCALE)

RF-RNBINOM (N P)

RF-RNCHISQ (DF LAMBDA)

RF-RNORM (MU SIGMA)

RF-RPOIS (LAMBDAX)

RF-RSIGNRANK (N)

RF-RT (N)

RF-RUNIF (A B)

RF-RWEIBULL (SHAPE SCALE)

RF-RWILCOX (M N)

RF-SIGN (X)

RF-TETRAGAMMA (X)

RF-TRIGAMMA (X)

RF-UNPROTECT (N)

RF-UNPROTECT-PTR (EXPR)

RUN-RMAINLOOP

SET-DATA-INTEGERS (SEXP INTEGERS)

SET-DATA-REALS (SEXP REALS)

SET-DATA-SEXPS (SEXP POINTERS)

SET-DATA-STRINGS (SEXP STRINGS)

SET-R-HOME (R-HOME)

SETUP-RMAINLOOP

SEXP-NILP (SEXP)

SEXP-UNBOUNDP (SEXP)

SXPINFO-DECODE (INT)

UNIF-RAND

MACRO

Public

ENABLE-RCL-SYNTAX

Enables RCL reader syntax.

WITH-DEVICE ((FILENAME TYPE &REST OPTIONS) &BODY BODY)

Executes the body after opening a graphical device that is closed at the end; options are passed to R (known types: :ps, :pdf, :png, :jp[e]g, :xfig, :pictex)

Undocumented

NEW-STRING (N)

NEW-STRING-SINGLE (STRING)

Private

DISABLE-RCL-SYNTAX

Restores the readtable which was active before the last call to ENABLE-RCL-SYNTAX. If there was no such call, the standard readtable is used.

SIGNAL-READER-ERROR (STREAM FORMAT-CONTROL &REST FORMAT-ARGUMENTS)

Like ERROR but signals a SIMPLE-READER-ERROR for the stream STREAM.

WITH-R-MESSAGE ((&OPTIONAL (STREAM *R-MESSAGE*) (PREFIX *R-MESSAGE-PREFIX*)) &BODY BODY)

Capture R messages and send them to stream (default *r-message*), adding a prefix to each line (default *r-message-prefix*)

WITH-R-OUTPUT ((&OPTIONAL STREAM PREFIX) &BODY BODY)

Capture R output and send it to stream (default *r-output*), adding a prefix to each line (default *r-output-prefix*)

Undocumented

ENVSXP-ENCLOS (ENVSXP)

ENVSXP-FRAME (ENVSXP)

ENVSXP-HASHTAB (ENVSXP)

LISTSXP-CAR (LISTSXP)

LISTSXP-CDR (LISTSXP)

LISTSXP-TAG (LISTSXP)

NEW-CHARACTER (N)

NEW-COMPLEX (N)

NEW-INTEGER (N)

NEW-INTERNAL-CHAR (STRING)

NEW-LANGUAGE-CONSTRUCT (N)

NEW-LIST (N)

NEW-LOGICAL (N)

NEW-REAL (N)

PROMSXP-ENV (PROMSXP)

PROMSXP-EXPR (PROMSXP)

PROMSXP-VALUE (PROMSXP)

SEXP-ATTRIB (SEXP)

SEXP-NEXT-NODE (SEXP)

SEXP-PREV-NODE (SEXP)

SEXP-SXPINFO (SEXP)

SEXP-UNION (SEXP)

SEXP-VECSXP (SEXP)

SXPINFO-BITFIELD (SXPINFO)

SYMSXP-INTERNAL (SYMSXP)

SYMSXP-PNAME (SYMSXP)

SYMSXP-VALUE (SYMSXP)

VECSXP-LENGTH (VECSXP)

VECSXP-TRUE-LENGTH (VECSXP)

WITH-R-STREAMS (&BODY BODY)

GENERIC-FUNCTION

Public

Undocumented

R-TO-LISP (SEXP)

Private

Undocumented

R-HEADER (SEXP)

R-OBJ-DESCRIBE (SEXP)

R-TYPE (SEXP)

SLOT-ACCESSOR

Private

Undocumented

ENCLOS (OBJECT)

SETFENCLOS (NEW-VALUE OBJECT)

ENVIRONMENT (OBJECT)

SETFENVIRONMENT (NEW-VALUE OBJECT)

EXPRESSION (OBJECT)

SETFEXPRESSION (NEW-VALUE OBJECT)

FRAME (OBJECT)

SETFFRAME (NEW-VALUE OBJECT)

HASHTAB (OBJECT)

SETFHASHTAB (NEW-VALUE OBJECT)

INTERNAL (OBJECT)

SETFINTERNAL (NEW-VALUE OBJECT)

MATRIX (OBJECT)

SETFMATRIX (NEW-VALUE OBJECT)

NAME (OBJECT)

SETFNAME (NEW-VALUE OBJECT)

NAMES (OBJECT)

SETFNAMES (NEW-VALUE OBJECT)

POINTER (OBJECT)

SETFPOINTER (NEW-VALUE OBJECT)

VALUE (OBJECT)

SETFVALUE (NEW-VALUE OBJECT)

VARIABLE

Private

*PREVIOUS-READTABLES*

A stack which holds the previous readtables that have been pushed here by ENABLE-RCL-SYNTAX.

*PRINT-ATTRIBUTES*

Print to standard output details about attributes when encountered

*R-ATTRIBUTES-PREFIX*

Default prefix used to print attributes

*R-MESSAGE*

Default stream where R messages will be sent if captured

*R-MESSAGE-PREFIX*

Default prefix used to print lines of R messages

*R-OUTPUT*

Default stream where R output will be sent if captured

*R-OUTPUT-PREFIX*

Default prefix used to print lines of R output

ANYSXP

make "any" args work. Used in specifying types for symbol registration to mean anything is okay

BCODESXP

byte code

BUILTINSXP

builtin non-special forms

CHARSXP

"scalar" string type (internal only)

CLOSXP

closures

CPLXSXP

complex variables

DOTSXP

dot-dot-dot object

ENVSXP

environments

EXPRSXP

expressions vectors

EXTPTRSXP

external pointer

FUNSXP

Closure or Builtin

INTSXP

integer vectors

LANGSXP

language constructs (special lists)

LGLSXP

logical vectors

LISTSXP

lists of dotted pairs

NILSXP

nil = NULL

PROMSXP

promises: [un]evaluated closure arguments

RAWSXP

raw bytes

REALSXP

real variables

SPECIALSXP

special forms

STRSXP

string vectors

SYMSXP

symbols

VECSXP

generic vectors

WEAKREFSXP

weak reference

Undocumented

*R-FUNCALL-DEBUG*

*R-HOME*

*R-LIB*

*R-LIB-EXTENSION*

*R-LIB-LOADED*

*R-LIB-NAME*

*R-LIB-PATH*

*R-SESSION*

*R-TYPES*

*R-VECTOR-TYPES*

CLASS

Private

Undocumented

CLOSXP_STRUCT-TCLASS

ENVSXP_STRUCT-TCLASS

LISTSXP_STRUCT-TCLASS

PRIMSXP_STRUCT-TCLASS

PROMSXP_STRUCT-TCLASS

R-ENVIRONMENT

R-LANGUAGE

R-MATRIX

R-POINTER

R-PROMISE

R-SYMBOL (NAME)

SEXPREC-TCLASS

SXPINFO_STRUCT-TCLASS

SYMSXP_STRUCT-TCLASS

VECSXP_STRUCT-TCLASS

VECTOR_SEXPREC-TCLASS

CONDITION

Private

RCL-READER-ERROR

A reader error which can be signalled by ERROR.