similar to: Help on interfacing C++ with R

Displaying 20 results from an estimated 1200 matches similar to: "Help on interfacing C++ with R"

2003 Dec 12
0
Synchronizing to multiple locations on a single destination serve r
Hi all. This has been bugging me for quite some time and I haven't found a solution yet. I was wondering if anyone has any experience with similar scenarios or/and can tell me how this process can be optimized. We use rsync to synchronize JAR libraries on our remote server. The catch here is, that the libraries must go in multiple locations (and not all the locations have all the
2009 Aug 21
2
Lightweight 'package' idea.
I'm often wanting to develop functions whilst manipulating data. But I don't want to end up with a .RData full of functions and data. It might be that I have functions that are re-usable but not worth sticking in a package. So I've tried to come up with a paradigm for function development that more closely follows the way Matlab and Python do it (partly inspired by a confused Matlab
2013 Jan 17
0
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi Ahmad, If the Makefile contains only this command, then it is not worth spending time on GoldPlugin. If you are building a large project, then it will be simpler to use GoldPlugin. The steps you are using seem right. You can possibly combine the last two steps (3&4) using only 1 clang command. clang -g -O2 -o .libs/mergedexe .libs/mergedbc.bc -pthread -Wl,--export-dynamic
2013 Jan 17
4
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi All, I am migrating a build system of an existing project from 'Object files' based executable generation to 'LLVM Bitcode' files based exe generation and applying OPT pass to LLVM Bitcode. I found out the following 4 step procedure. Please let me know if this is the right procedure or is there any other easy way of doing it. I need to modify 'Makefile' accordingly. I
2002 Jan 26
1
Trouble with contrasts
Greetings, I have a nagging problem with contrasts and I can't seem to resolve it. A factor exists with four levels (lib1, lib2, con1, con2) and when I check the contrasts or set the contrasts to any of the prespecified ones, I do not get the exact contrasts necessary to test the theoretically relevant ones. I need orthogonal contrasts that look just like this matrix: con1 con2
2013 Jan 17
0
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi Ahmad, On 17/01/13 14:56, Hassan, Ahmad wrote: > Hi All, > > I am migrating a build system of an existing project from ‘Object files’ based > executable generation to ‘LLVM Bitcode’ files based exe generation and applying > OPT pass to LLVM Bitcode. I found out the following 4 step procedure. Please let > me know if this is the right procedure or is there any other easy way
2020 Sep 15
2
[ELF] String literals don't obey -fdata-sections
Hi there, When I compile my code with -fdata-sections and -ffunction-sections, I still see some unused string in my shared library (Android). Actually, the strings appear together inside a .rodata.str1.1 section instead of getting their own section. It seems that the C-string literal are considered differently than other constant and the -fdata-sections is not respected in
2013 Jan 17
1
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi Duncan, > 4.gcc -g -O2 -o .libs/mergedexe .libs/mergedbc.s -pthread > -Wl,--export-dynamic .libs/lib1.a -lssl -lcrypto -ldl -pthread .libs/lib2.so >if you pass -O4 rather than -O2 to clang I think it will in essence do this all >for you already. It might even do the link time optimization for you at -O2 >even, I'm not sure. No, if I use clang for producing
2004 Jun 09
1
About dll from c++ routine
Hi folks, My system is Windows98 + R1.9.0. The path for my system is c:\perl\bin; c:\mingw\bin; c:\rtools; c:\windows; c:\windows\command; c:\rw1090\bin. I created three files followed the examples in “Writing R extensions” in the directory c:\temp: // X.hh class X { public: X (); ~X (); }; class Y { public: Y (); ~Y (); }; // X.cc #include <iostream> #include "X.hh" static
2008 Mar 17
1
how to get access to C++ Objects
In the "Writing R Extensions" manual appears this example, to get access to C++ function using the R commands: R> dyn.load(paste("X", .Platform$dynlib.ext, sep = "")) constructor Y R> .C("X_main") constructor X destructor X list() That gives me access to the function "X_main", but how to get access to methods and properties
2014 Dec 08
0
libgfapi disk locking in virtlockd not working
Hello. I'm playing with libgfapi network disks, over IB and all is working fine, but not disk locking (and true rdma transport). I use virtlockd, and with fuse mount, locking works as expected. But when i converted disk definitions to libgfapi, locks are not created (but qemu starts and works fine). I used direct and indirect locking - same result : qemu working fine, no locks. my
2011 Feb 11
3
Writing R packages in an easier way?
Dear R colleagues, is there an easier way to write R packages for the own use - without RTools and TeX? With R versions < 2.10.0 it was very easy to write a package. Under the path with the package name you wrote a description file and built some directories like "help", "html" and "R" with the special files in a "hand-operated" way. In the next step
2012 Jul 18
3
Subsetting problem data
Hello, I need to subset my data to only look at the parts that have "holes" in it. I already have a formula to get rid of inconsistencies, but now I need to look only at the problem data to reconfigure it. In my data set where there are multiple "cycles" per "patient," and I want to highlight the patients who have a variable was not measured every cycle. Here's a
2006 Apr 28
0
trouble with make/VPATH
I've got a tough to track down problem that seems to be samba related. I've got a directory structure like this: topdir/ lib1/src lib1/include lib2/src lib2/include etc. Each src directory has a makefile in it. VPATH is set to ../include. I'm running cygwin bash and make. In some directories, make can't find files in ../include. In other directories, make finds
2013 Jul 18
2
Help building OPUS library using FIXED_POINT option
Hi, We are rebasing our audio compression subsystem using OPUS rather than SPEEX. The platform is Android but this piece is written in C code: we need to support armv5/armv7/x86 architectures.... and we use the released opus-1.1beta package from here<http://downloads.xiph.org/releases/opus/opus-1.1-beta.tar.gz>. A lot of our OPUS build system + code to drive the audio compression has been
2003 Jul 07
1
Problems with a dll under windows
I am trying to get a dll compiled for use with dyn.load. I use R.1.7.1 under Windows. I have tried the following trivial example based on the "Writing R extensions" manual. rtest.h -------- class X { public: X (); ~X (); void Give7(double*); }; class Y { public: Y (); ~Y (); }; rtest.cpp --------- #include <iostream.h> #include "rtest.h" static Y y;
2017 Mar 16
4
Support for user defined unary functions
R has long supported user defined binary (infix) functions, defined with `%fun%`. A one line change [1] to R's grammar allows users to define unary (prefix) functions in the same manner. `%chr%` <- function(x) as.character(x) `%identical%` <- function(x, y) identical(x, y) %chr% 100 #> [1] "100" %chr% 100 %identical% "100" #> [1] TRUE
2012 May 03
2
Very small random effect estimation in lmer but not in stata xtmixed
Hi folks I am using the lmer function (in the lme4 library) to analyse some data where individuals are clustered into sets (using the SetID variable) with a single fixed effect (cc - 0 or 1). The lmer model and output is shown below. Whilst the fixed effects are consistent with stata (using xtmixed, see below), the std dev of the random effect for SetID is very very small (3.5803e-05)compared to
2017 Mar 16
2
Support for user defined unary functions
Gabe, The unary functions have the same precedence as normal SPECIALS (although the new unary forms take precedence over binary SPECIALS). So they are lower precedence than unary + and -. Yes, both of your examples are valid with this patch, here are the results and quoted forms to see the precedence. `%chr%` <- function(x) as.character(x) `%identical%` <- function(x, y)
2011 Apr 20
1
FW: [Rcpp-devel] Question on 5.6 Interfacing C++ code
Hi, apparently I sent my question about using R and C++ to the wrong list, ironically seeing as that list was called Rcpp. Anyway, I was directed to post my question here. To summarize my current question, I have found two commands that I want to be able to put into a package. The commands are 'R CMD SHLIB X.cc X_main.cc' and