inline-r-0.10.3: Seamlessly call R from Haskell and vice versa. No FFI required.
Copyright(C) 2013 Amgen Inc.
Safe HaskellNone
LanguageHaskell2010

Language.R.Globals

Description

Global variables used by the R interpreter. All are constant, but the values of some of them may change over time (e.g. the global environment).

Synopsis

Documentation

baseEnv :: SEXP G 'Env Source #

The base environment.

emptyEnv :: SEXP G 'Env Source #

The empty environment.

globalEnv :: SEXP G 'Env Source #

The global environment.

nilValue :: SEXP G 'Nil Source #

R's NULL value.

missingArg :: SEXP G 'Symbol Source #

Value substituted for all missing actual arguments of a function call.

unboundValue :: SEXP G 'Symbol Source #

Special value to which all symbols unbound in the current environment resolve to.

R Internal constants

R global constants

The main reason to have all R constants referenced with a StablePtr is that variables in shared libraries are linked incorrectly by GHCi with loaded code.

The workaround is to grab all variables in the ghci session for the loaded code to use them, that is currently done by the H.ghci script.

Upstream ticket: https://ghc.haskell.org/trac/ghc/ticket/8549#ticket

pokeRVariables :: RVariables -> IO () Source #