similar to: Calling R functions from C++ code

Displaying 20 results from an estimated 100000 matches similar to: "Calling R functions from C++ code"

2002 Aug 07
0
calling R-functions from C++ code
Hi, I'm working with a C++ program, in which we would like to use some of the existing R-functions, in this case a function which performs loess normalization. My question is if it's possible to call this loess-function from within my C++ code and how to do it? How do I connect the R program to C++? best regards Alexandra, summer student at the university of Cambridge
2006 May 08
1
Calling C++ code fom R --How to export C++ "unsigned" integer to R?
Hello all, Is there a way to export C++ "unsigned" integer to R? (I am trying to parse files in "BPMAP" format, and some variables are of type unsigned int (first declared in C++) ). I know that to export signed integer to R, I can do the following in C++: int Some_INTEGER = 5; int *p_myInt; SEXP myInt; PROTECT(myInt=NEW_INTEGER(1)); myInt[0] = Some_INTEGER;
2000 Nov 03
1
How to call R functions from a C++ program
Dear R experts, Could anyone give some concrete examples of how to call R functions from a program written in C++? Thanks in advance for your help. Nathapong Samlamjiag _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at
2002 Mar 27
1
kriging C/C++ code
Hello to everybody ! I don't have a question directly connected with R, but it takes starting point from the use of the R function Krig for kriging interpolation and from the idea of making a different implemetation of the function for my purposes. Doas anyone know where can I find free C or C++ codes of kriging ? As always, thanks a lot in advance, Paola.
2012 Jan 05
1
Calling R functions within C/C++
Hello everyone! First of all, please note that I'm working under Windows 7. I have written a Gibbs sampler in R and I'm now in the process of translating it in C++ to increase the speed. I'm relatively new to C++ and this question may be trivial, but my search so far have been unsuccessful. In my Gibbs sampler I am using some basic R functions (like the rep function for example)
2001 Jun 06
1
Calling R from C++ application
Hi, I am trying to figure out if it's possible to use R as a computational engine for a C++-based windows application. What I would like to do (from my C++ program)is: - start R - send some data from my program to R - execute R program - get data back to my application (I was able to implement all this for Matlab.) I looked at Chapter 4 of "Modern Applied Statistics with S-plus"
2013 Jan 14
0
debug package calling C++ code using valgrind
Hi, I am trying to debug a package which I helped to develop since we were notified by CRAN that our package randomly fails to run its examples. Hence, I reinstalled R with "with-valgrind-instrumentation=2" and installed our package with MAKEFLAGS="CFLAGS='-O0 -g3' CXXFLAGS='-O0 -g3'" R CMD INSTALL --build hsmm Then, I ran the examples of our package with R
2011 Nov 07
0
[LLVMdev] LLVM: to catch 'unwind' instruction from calling C++ code
oops... so how can unwind stack up to invoke call? Is there an alternative to establish a custom exception handling? 2011/11/7 Duncan Sands <baldrick at free.fr> > >> Hi Semion, the unwind instruction has been removed from LLVM. Also, the >> JIT >> and code generators never supported it: it never unwound the stack, it >> just >> resulted in a nasty crash.
2002 Jul 24
1
loading compiled C++ code as shared library
Dear People, Over the last few days I've been writing C++ to compile as a shared library (previously I have always used C). Not entirely to my surprise, I am getting errors. Specifically, when I try to load the shared library, I get Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library "/home/faheem/research/thesis/sim/ms/ms.so":
2008 Jun 19
2
Calling R functions into C# or C++
Hi R, I have a request... Can I call R functions/routines from C# or C++? If so, how do I do this? Do I need to have some knowledge on DLL to do this? Thanks a lot for your help, Shubha Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com This e-mail may contain
2011 Dec 22
1
Calling R functions from C++ under VS2005
Hi, I'm trying to call some of R's statistical functions within my C++ code, developed under VS2005, but I can't seem to find out how to do it. I tried RInside and Rcpp, but they either don't work on Windows or with VS. Is there a way to do this? Appreciate the help. Regards,
2002 Nov 13
1
DLLs adding in C++ code
I would like to utilise the power of R by adding my own software as a package written in C++. As a first step I am trying to write a DLL with a simple function that can be called from R. The DLL contains a C++ routine written and complied in Microsoft Visual C++ Ver 6.0 and is based upon the example in R-Exts eg I am trying to create the following example function SEXP out(SEXP x, SEXP y) {
2011 Nov 06
3
[LLVMdev] LLVM: to catch 'unwind' instruction from calling C++ code
Hi! I have a little problem using LLVM and will be happy to get a solution. I need to handle in C++ code an uncaught unwind instruction while calling JIT (now I get segfault). I mean something like nonexistent ExecutionEngine::invokeFunction instead of callFunction. Setting llvm::JITExceptionHandling to true and enclosing the JIT-call within try/catch block does not help here, because there is no
2013 Aug 08
0
[LLVMdev] Inserting C++ code on tablegen to improve code generation statistics
Hello everyone. I'm working in a project and my task right now is improving LLVM code generation's statistics for X86 target. Currently you can show statistics by passing the command-line parameter -stats to any llvm program (I'm using llc to compile .bc to native code) and it'll show something like this:
2001 Jan 23
0
using R source as a library (a) for our own C++ code
Dear all, I want to use the Fisher''s exact test developped for R in my own C++ code. I try to do it and look for help but find nothing. I tried to compile directly the file "fexact.c" but it call a lot of other codes.... So I wondered if it is possible? If so how to do? Many thanks for your answer. Francoise Berthoud
2001 Sep 10
1
problems linking c++ code
I've been trying to learn about dynamically loading subroutines in R. Ultimately I would like to use this approach to implement some simulations. For the moment though, I've run into a problem compiling c++ code and loading it into R. The 'C/C++' and 'R'code below works fine when compiled and linked with gcc, but gives an error when the library is compiled and linked with
2006 Nov 23
0
[748] trunk/wxruby2/swig/classes: Fix an errant Ruby-ism in C++ code (Roy Sutton)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2002 Apr 29
2
calling optim from external C/C++ program
Hi, Does anyone have an example of calling optim() from a standalone C/C++ program? If possible please include the linker options (I am using gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)) Thanks, Vadim -------------------------------------------------- DISCLAIMER This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain
2007 Jun 16
2
[LLVMdev] Runtime optimization of C++ code with virtual functions
Let's say we have the following scheme using C++ and virtual functions: class DSP { public: DSP() {} virtual ~DSP() {} virtual int Compute(int count, float** in, float** out) = 0; }; class CONCRETE_DSP : public DSP { public: CONCRETE_DSP():fValue() {} virtual ~CONCRETE_DSP() {} virtual int Compute(int count, float** in, float** out) { DoSomeProcess(); } }; class
2012 Aug 16
1
[LLVMdev] Question on C++ code completion - function parameter list
Hello, Using c-index-test.exe I'm learning clang code completion for C++. I have an issue to get the current parameter list of a C++ function. While it works for a C function, I get nothing which can be evaluated in case of C++ function. I use the following command line: "c-index-test -code-completion-at=x.cpp:9:10 -x c++ -fsyntax-only -x.cpp" Where: - "9:10" is