similar to: (no subject)

Displaying 20 results from an estimated 200 matches similar to: "(no subject)"

2008 Jul 20
1
garbage collection, "preserved" variables, and different outcome depending on "--verbose" or not
Dear list, While trying to identify the root of a problem I am having with garbage collected variables, I have come across the following oddity: depending on whether --verbose is set or not, I obtain different results. I have made a small standalone example to demonstrate it. The example is very artificial, but I had a hard time reproducing reliably the problem. So when I do: (the content of
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
2009 Jun 26
1
bug in Rf_PrintValue ?
I'm very green with R, so maybe this is not a bug, but it looks like one to me. The following program segfaults at the second call to Rf_PrintValue(). To failure depends on the value of the y-string. E.g., if I change it from "coverage" to, say, "COVERAGE", the segfault does not occur. /* bug.c */ #include <stdio.h> #include <Rinternals.h> #include
2006 Aug 01
2
A problem with R CMD SHLIB
Hi, I followed the example in "Writing R Extensions" to create a shared object in Windows, using the command R CMD SHLIB X.cc X_main.cc This was encountered: ../src/gnuwin32/MkRules:155: warning: overriding commands for target '.c.d' ../src/gnuwin32/MkRules:143: warning: ignoring old commands for target '.c.d' ../src/gnuwin32/MkRules:171: warning: overriding commands
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
2005 Jan 20
2
Compiling wxRuby 0.6 with Borland C++ Compiler
I''m trying to recompile wxRuby 0.6 using Borland''s C++ Compiler (version 5.5.1). So far I was able to do the following: 1) Recompile a working version of ruby V1.8.1 executable using bcc32 2) Recompile a working version of wxWindows 2.4.2 using bcc32   However for wxruby, I''m having some problems with the Makefile which I fixed. Now when I''m compiling the
2007 Apr 08
3
[LLVMdev] C++ -> C translation problems
Hi All, I am trying to use llvm compiler to translate a non-trivial piece of code from C++ to C. I need this because I need to use part of the code as lib for another project that is strictly C. I am working under MSWin and I have choice to use either BCC or MSVC. After a good deal of tries I found out I had to somewhat massage llc -march=c output to make it *almost* compilable. I have one
2010 Sep 01
2
invert order
Dear R-help list users, I have a huge vector of numbers, how I can invert orden? For example x <- 1:10000000 I would like to obtain x_r <- 10000000:1 Thanks, Sebastian.
2002 Jun 27
2
Borland compiler
Has anyone compiled the ogg and vorbis libraries with borlands c compiler (bcc32)? If so, are there any makefiles or similar available which can make it easier for me to do the same? /Erik <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org'
2008 Nov 25
1
Sieve and global scripts
Hi Stephan Bosch, there's any way to make the dovecot deliver agent (with sieve) load a "global sieve script" before load the user sieve file? I want to create some rules for every one, like: "if header contais: IS SPAM, move to SPAM BOX"... I made this today with a couple of "sed + awk" and a wraper for managesieve-login... but, this is definily not the best way
2007 Apr 16
0
[LLVMdev] "Name that compiler"
[Apologies in advance for the train of thought prose, but it is brainstorming after all…] I'm going to focus on self-descriptive names rather than literary or fantasy references… Advanced Compiler Kit, affectionately known as “ACK!”? It has an ill- deserved nod to NeXT, even. (Completely the wrong language, after all.) Core Compiler? Heh, I don't think that'd get past certain
2005 Oct 26
1
Borland C++ and [R] dyn.load() for windows
Hi, I compiled a C program file on Borland C++ 5.5 compiler to get one dll output (as instructed in the file readme.package). The C program file is just the example on page 31 of "writing R extensions": void convolve(double *a, int *na, double *b, int *nb, double *ab) { int i, j, nab = *na + *nb - 1; for(i = 0; i < nab; i++) ab[i] = 0.0; for(i = 0; i < *na; i++) for(j = 0; j
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;
2003 Jan 13
0
(no subject)
Dear experienced "users" The following question arose in the context of a project : we were searching for an example how to use (interface) VC++-Code in R. We were looking for the example file cxx_0.0-x.tar.gz in src\contrib\devel but didn't find it. In particular our interest goes to the "windows-version" of an example in section 4.5 (page 27) of the
2004 Feb 17
1
Vorbisfile Problem...
OK, I have a minor problem with the 'vorbisfile' libraries. I copied both the normal and dynamic DLLs to my program directory, and they load fine. Thing is, if I link with 'vorbisfile.lib' and use 'ov_open', the application just locks up. If I link with 'vorbisfile_d.lib' and use the function, Windows brings up a standard crash window, and I can just use that to
2002 Aug 23
1
R_NilValue blows up on Windows
Ok, Here's the c code that's loaded into R as dll on windows: #include <R.h> #include <Rdefines.h> SEXP test1(SEXP col); SEXP test1(SEXP col) { SEXP col2; Rprintf("no value!\n"); return col2; } Compiles ok with bcc32 into a dll, loads into R as part of a library, I Run library(rkdb), then > .Call("test1", 2) no value! And puf! Rterm crashes.
2006 Mar 13
1
Help on interfacing C++ with R
Hi, I am trying to set up a C++ library for my R code. I followed the R-extension manual but found out that the example of "X.cpp, X_main.cpp" is somewhat too simple. Here is my code: //lib4R.h testing for interfacing C++ with R -- using C++ library in R #include <iostream> using namespace std; class lib4R { public: lib4R(); ~lib4R(); int
2013 Aug 27
1
Error in simulation. NAN
Hi all, im triyng to implement a bayesian model with R and c++. I have a strange problem. I can't reproduce the error with a small script and then i post the original one. The problem is after the line for(MCMC_iter2=0;MCMC_iter2<thin;MCMC_iter2++) For the first 34 iterations all work fine, after, all the simulations of mu_acc_P return an "nan". If i delete the line
2001 Sep 20
0
Wine ?? MM ?? Microphone ??
hey guys !! does anyone know a way to make a 'mic' device available ??? voice_tweak.exe from HL does require it ... and i think all other Voice/Micophone apps do require it too. the ponit at the moment is, i'd like to use the voicechat function from HL ... since this is shipped with 1108 .... so please gimme some hints ... btw : i don't use the OSS modules in the kernel .. is