This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8; -*- | |
| // | |
| // Simple example showing how expose a C++ function | |
| // | |
| // Copyright (C) 2010 Dirk Eddelbuettel and Romain Francois | |
| #include <RInside.h> // for the embedded R via RInside | |
| // a c++ function we wish to expose to R | |
| const char* hello( std::string who ){ |
NewerOlder