package ocaml-r

  1. Overview
  2. Docs

Low-level inspection

val s3_class : sexp -> strsxp
val get_attributes : sexp -> _ pairlist sxp
val is_s4_object : sexp -> bool
val do_new_object : sexp -> sexp
val inspect_attributes : sexp -> sexp
val length_of_vector : [< vector ] sxp -> int
val inspect_symsxp_pname : symsxp -> sexp
val inspect_symsxp_value : symsxp -> sexp
val inspect_symsxp_internal : symsxp -> sexp
val inspect_listsxp_carval : 'a nonempty_list sxp -> sexp
val inspect_listsxp_cdrval : 'a nonempty_list sxp -> [> internallist ] sxp
val inspect_listsxp_tagval : 'a nonempty_list sxp -> sexp
val inspect_envsxp_frame : envsxp -> sexp
val inspect_envsxp_enclos : envsxp -> sexp
val inspect_envsxp_hashtab : envsxp -> sexp
val inspect_closxp_formals : closxp -> sexp
val inspect_closxp_body : closxp -> sexp
val inspect_closxp_env : closxp -> sexp
val access_lglsxp : lglsxp -> int -> bool
val access_intsxp : intsxp -> int -> int
val access_realsxp : realsxp -> int -> float
val access_realsxp2 : realsxp -> int -> int -> float
val access_strsxp : strsxp -> int -> string
val access_rawsxp : rawsxp -> int -> sexp
val access_exprsxp : exprsxp -> int -> langsxp
val null_creator : unit -> [ `Nil ] sxp
val dots_symbol_creator : unit -> [ `Dot ] sxp
val missing_arg_creator : unit -> symsxp
val base_env_creator : unit -> sexp
val global_env : unit -> sexp
val eval_langsxp : langsxp -> sexp

eval_langsxp takes a R value containing an R executable expression. Also known as a LANGSXP. You get the resulting value back.

val lglsxp_of_bool_list : bool list -> lglsxp
val intsxp_of_int_list : int list -> intsxp
val realsxp_of_float_list : float list -> realsxp
val strsxp_of_string_list : string list -> strsxp
val realsxp_of_float_option_list : float option list -> realsxp
val sexps_of_t : rawsxp -> sexp list

Converts an R array of SEXPs into an OCaml array of SEXPs.

val classes : sexp -> string list
OCaml

Innovation. Community. Security.