RInside Version 0.2.16
RInside Class Reference

#include <RInside.h>

Collaboration diagram for RInside:

Classes

class  Proxy
 

Public Member Functions

int parseEval (const std::string &line, SEXP &ans)
 
void parseEvalQ (const std::string &line)
 
void parseEvalQNT (const std::string &line)
 
Proxy parseEval (const std::string &line)
 
Proxy parseEvalNT (const std::string &line)
 
template<typename T >
void assign (const T &object, const std::string &nam)
 
 RInside ()
 
 RInside (const int argc, const char *const argv[], const bool loadRcpp=true, const bool verbose=false, const bool interactive=false)
 
 ~RInside ()
 
void setVerbose (const bool verbose)
 
Rcpp::Environment::Binding operator[] (const std::string &name)
 
void repl ()
 

Static Public Member Functions

static RInsideinstance ()
 
static RInsideinstancePtr ()
 

Private Member Functions

void init_tempdir (void)
 
void init_rand (void)
 
void autoloads (void)
 
void initialize (const int argc, const char *const argv[], const bool loadRcpp, const bool verbose, const bool interactive)
 

Private Attributes

MemBuf mb_m
 
Rcpp::Environment * global_env_m
 
bool verbose_m
 
bool interactive_m
 

Static Private Attributes

static RInsideinstance_m = 0
 

Detailed Description

Definition at line 29 of file RInside.h.

Constructor & Destructor Documentation

◆ RInside() [1/2]

RInside::RInside ( )

Definition at line 56 of file RInside.cpp.

References initialize().

Referenced by assign().

Here is the call graph for this function:

◆ RInside() [2/2]

RInside::RInside ( const int  argc,
const char *const  argv[],
const bool  loadRcpp = true,
const bool  verbose = false,
const bool  interactive = false 
)

Definition at line 98 of file RInside.cpp.

References initialize().

Here is the call graph for this function:

◆ ~RInside()

RInside::~RInside ( )

Definition at line 43 of file RInside.cpp.

References global_env_m, and instance_m.

Referenced by assign().

Member Function Documentation

◆ assign()

template<typename T >
void RInside::assign ( const T &  object,
const std::string &  nam 
)
inline

Definition at line 78 of file RInside.h.

References RInside(), verbose, and ~RInside().

Referenced by initialize(), and passToR().

Here is the call graph for this function:

◆ autoloads()

void RInside::autoloads ( void  )
private

Definition at line 239 of file RInside.cpp.

References global_env_m.

Referenced by initialize().

◆ init_rand()

void RInside::init_rand ( void  )
private

Definition at line 230 of file RInside.cpp.

Referenced by initialize().

◆ init_tempdir()

void RInside::init_tempdir ( void  )
private

Definition at line 212 of file RInside.cpp.

References setenv().

Referenced by initialize().

Here is the call graph for this function:

◆ initialize()

void RInside::initialize ( const int  argc,
const char *const  argv[],
const bool  loadRcpp,
const bool  verbose,
const bool  interactive 
)
private

Definition at line 108 of file RInside.cpp.

References assign(), autoloads(), global_env_m, init_rand(), init_tempdir(), instance_m, interactive_m, programName, setenv(), verbose, and verbose_m.

Referenced by RInside().

Here is the call graph for this function:

◆ instance()

RInside & RInside::instance ( )
static

Definition at line 416 of file RInside.cpp.

References instance_m.

Referenced by repl(), and setVerbose().

◆ instancePtr()

RInside * RInside::instancePtr ( )
static

Definition at line 420 of file RInside.cpp.

References instance_m.

Referenced by setVerbose().

◆ operator[]()

Rcpp::Environment::Binding RInside::operator[] ( const std::string &  name)

Definition at line 412 of file RInside.cpp.

References global_env_m.

Referenced by setVerbose().

◆ parseEval() [1/2]

int RInside::parseEval ( const std::string &  line,
SEXP &  ans 
)

Definition at line 326 of file RInside.cpp.

References MemBuf::add(), MemBuf::getBufPtr(), global_env_m, mb_m, programName, MemBuf::rewind(), and verbose_m.

Referenced by evalInR(), parseEval(), parseEvalNT(), parseEvalQ(), and parseEvalQNT().

Here is the call graph for this function:

◆ parseEval() [2/2]

RInside::Proxy RInside::parseEval ( const std::string &  line)

Definition at line 397 of file RInside.cpp.

References parseEval().

Here is the call graph for this function:

◆ parseEvalNT()

RInside::Proxy RInside::parseEvalNT ( const std::string &  line)

Definition at line 406 of file RInside.cpp.

References parseEval().

Here is the call graph for this function:

◆ parseEvalQ()

void RInside::parseEvalQ ( const std::string &  line)

Definition at line 384 of file RInside.cpp.

References parseEval().

Referenced by evalQuietlyInR().

Here is the call graph for this function:

◆ parseEvalQNT()

void RInside::parseEvalQNT ( const std::string &  line)

Definition at line 392 of file RInside.cpp.

References parseEval().

Here is the call graph for this function:

◆ repl()

void RInside::repl ( )

Definition at line 424 of file RInside.cpp.

References instance().

Referenced by setVerbose().

Here is the call graph for this function:

◆ setVerbose()

void RInside::setVerbose ( const bool  verbose)
inline

Definition at line 88 of file RInside.h.

References instance(), instancePtr(), operator[](), repl(), and verbose.

Here is the call graph for this function:

Member Data Documentation

◆ global_env_m

Rcpp::Environment* RInside::global_env_m
private

Definition at line 32 of file RInside.h.

Referenced by autoloads(), initialize(), operator[](), parseEval(), and ~RInside().

◆ instance_m

RInside * RInside::instance_m = 0
staticprivate

Definition at line 44 of file RInside.h.

Referenced by initialize(), instance(), instancePtr(), and ~RInside().

◆ interactive_m

bool RInside::interactive_m
private

Definition at line 35 of file RInside.h.

Referenced by initialize().

◆ mb_m

MemBuf RInside::mb_m
private

Definition at line 31 of file RInside.h.

Referenced by parseEval().

◆ verbose_m

bool RInside::verbose_m
private

Definition at line 34 of file RInside.h.

Referenced by initialize(), and parseEval().


The documentation for this class was generated from the following files: