23 #ifndef RINSIDE_RINSIDE_H 24 #define RINSIDE_RINSIDE_H 41 void initialize(
const int argc,
const char*
const argv[],
42 const bool loadRcpp,
const bool verbose,
const bool interactive);
46 #ifdef RINSIDE_CALLBACKS 47 Callbacks* callbacks ;
48 friend void RInside_ShowMessage(
const char* message);
49 friend void RInside_WriteConsoleEx(
const char* message,
int len,
int oType );
50 friend int RInside_ReadConsole(
const char *prompt,
unsigned char *buf,
int len,
int addtohistory);
51 friend void RInside_ResetConsole();
52 friend void RInside_FlushConsole();
53 friend void RInside_ClearerrConsole();
54 friend void RInside_Busy(
int which);
65 return ::Rcpp::as<T>(
x);
71 int parseEval(
const std::string &line, SEXP &ans);
78 void assign(
const T&
object,
const std::string& nam) {
79 global_env_m->assign( nam,
object ) ;
83 RInside(
const int argc,
const char*
const argv[],
84 const bool loadRcpp=
true,
85 const bool verbose=
false,
const bool interactive=
false);
90 Rcpp::Environment::Binding
operator[](
const std::string& name );
97 #ifdef RINSIDE_CALLBACKS 98 void set_callbacks(Callbacks* callbacks_) ;
void setVerbose(const bool verbose)
Rcpp::Environment::Binding operator[](const std::string &name)
void parseEvalQ(const std::string &line)
static RInside * instancePtr()
static RInside * instance_m
int parseEval(const std::string &line, SEXP &ans)
Proxy parseEvalNT(const std::string &line)
void parseEvalQNT(const std::string &line)
void initialize(const int argc, const char *const argv[], const bool loadRcpp, const bool verbose, const bool interactive)
Rcpp::Environment * global_env_m
void assign(const T &object, const std::string &nam)
static RInside & instance()