RInside Version 0.2.16
rinside_test2.cpp
Go to the documentation of this file.
1
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2
//
3
// Show the search path to check if package methods is loaded
4
//
5
// Copyright (C) 2012 Dirk Eddelbuettel and GPL'ed
6
7
#include <
RInside.h
>
// for the embedded R via RInside
8
9
int
main
(
int
argc,
char
*argv[]) {
10
11
RInside
R(argc, argv);
// create an embedded R instance
12
13
std::string cmd =
"print(search())"
;
14
R.
parseEval
(cmd);
// eval the init string, ignoring any returns
15
16
exit(0);
17
}
18
main
int main(int argc, char *argv[])
Definition:
rinside_test2.cpp:9
RInside::parseEval
int parseEval(const std::string &line, SEXP &ans)
Definition:
RInside.cpp:326
RInside.h
RInside
Definition:
RInside.h:29
inst
examples
standard
rinside_test2.cpp
Generated on Wed Mar 11 2020 22:27:24 for RInside Version 0.2.16 by
1.8.13