similar to: C/C++ namespaces

Displaying 20 results from an estimated 6000 matches similar to: "C/C++ namespaces"

2005 Jun 30
1
parsing '...' function argument?
Dear community, I am writing a wrapper for '[' operator, which is a generic method declared as function(x, i, j, ..., drop). It turns out that I need to parse the '...' argument and this is where I am stuck. Generally what I need is the following. Say the call is obj[1, 1, 1:10, 3] - here '1:10, 3' is passed into '...'. What I need to evaluate that '...'
2005 Mar 16
1
.Call - applying setAttrib(x, R_DimSymbol, s) to a matrix being an element of a list
Dear R developers, I am writing some C code that loads multiple images into a list of R matrices. The whole R object is created within the C code. To simplify coding, elements of the list are first created as vectors and then converted to corresponding matrices using setAttrib(x, R_DimSymbol, s). Generally the code works fine except for one detail. Applying setAttrib sets ALL elements
2005 Feb 25
3
passing command line arguments to 'R CMD BATCH myScript.R'
Hi Community, I have a question about how to pass command line parameters to R script running in the batch mode. The problem is: there is a banch of data files which are to be processed by R script called from a web-server, i.e. in the batch mode. The web server generates data files and passes their names calling 'R CMD BATCH' one by one for every file. Now the question is how to
2005 Mar 16
1
returning NULL from .Call call
Dear R developers, I've just encountered one "feature" of R-C extensions. If it is known, I would be thankful for any hints why it works this way (I found the way around, which is also mentioned here, but maybe it is not the best one). If it is however unknown, it might be considered for a "wish list". Consider a simple "aka" C function (the original
2005 Feb 25
5
[Rdev] any way to generate "bitmap" (tif, jpeg, png etc) files in R CMD BATCH
Hi Community, here is the problem, Linux problem (reported to work on Windows). I need to generate graphical output in any of bitmap format under the 'R CMD BATCH'. Whereas the script generating png-s works perfectly in the R session, such things as X11, png and jpeg are not usable in BATCH (they cannot be switched on by --gui-X11 etc) and X11 is prompted to be required for png. At
2005 Feb 25
5
[Rdev] any way to generate "bitmap" (tif, jpeg, png etc) files in R CMD BATCH
Hi Community, here is the problem, Linux problem (reported to work on Windows). I need to generate graphical output in any of bitmap format under the 'R CMD BATCH'. Whereas the script generating png-s works perfectly in the R session, such things as X11, png and jpeg are not usable in BATCH (they cannot be switched on by --gui-X11 etc) and X11 is prompted to be required for png. At
2007 Feb 13
2
anyone has C++ STL classes stability issue if used with R
Hello, is there any one who uses C++ STL classes when programming shared libs for R and has had any problems with STL? In the very simple example below I am constantly getting segfaults when trying to populate the queue. The segfault occurs at what looks like a random index in the loop when pushing another element to the queue. Reproduced on 4 machines. Object x is an Image as in EBImage,
2007 May 22
2
inline C/C++ in R: question and suggestion
This is a question and maybe an announcement. We've been discussing in the group that it would be nice to have a mechanism for something like "inline" C/C++ function calls in R. I do not want to reinvent the wheel, therefore, if something like that already exists, please give me a hint -- I could not find anything. If not, here is a working solution, please criticise so I could
2007 Jul 03
0
'inline' package update
Dear all, the 'inline' package was updated to version 0.2.2 with the following changes: - functions declared using 'cfunction' can now be saved, the code is recompiled when the object is loaded (not yet implemented for setCMethod) - full path to the R binary is used for compilation allowing for the use of the correct R version when several are installed The
2008 Oct 11
1
defines in Rmath.h and R_NO_REMAP
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi, I'm programming with R 2.7.2 and had some trouble including Rmath.h for its random variates generation routines: Although I define R_NO_REMAP (which works fine for Rinternals.h stuff), Rmath.h defines "beta" as "Rf_beta" etc., so that my "beta" strings get redefined as well! Is this a feature? I found an old
2013 Sep 27
1
LENGTH function causing name conflict
I am attempting to bring R-3.0.2 functionality into a project with a very large C++ codebase. The existing codebase already has a LENGTH function defined. R also defines a LENGTH function. I first compiled R as a shared library and linked it into this existing codebase, along with RInside. When I run a parseEvalQ with a linear model command it will stack dump. Looking at the backtrace, what is
2009 Jan 13
2
particulars of importing/loading libraries
Dear List: Sorry for posting maybe a trivial question, but I have a basic understanding problem. If I have say pack1 and pack2, two R packages, and pack2 depends on and imports pack1 fully (as in the code below), is there a way to make all the functionality of pack1 available for the global and other environments (not only for the functions called from withing pack2) by loading pack2 only? I
2008 Feb 12
4
assigning NULLs to elements of a list
Dear developers: I have just came across an (unexpected to me) behaviour of lists when assigning NULLs to list elements. I understand that a NULL is a valid R object, thus assigning a NULL to a list element should yield exactly the same result as assigning any other object. So I was surprised when assigning a NULL in fact removed the element from the list. Is this an intended behaviour? If
2008 May 04
1
texi2dvi instead of pdflatex in R2.7.0? and related bioc 2.2 builds
Dear lists: I am somewhat puzzled by the use of texi2dvi/pdflatex in R2.7.0. When building EBImage (bioconductor) with 2.7.0 I get the same error both in Windows and Linux, which reads the following: ** building package indices ... * DONE (EBImage) * creating vignettes ... ERROR /usr/bin/texi2dvi: pdflatex exited with bad status, quitting. Error in texi2dvi(file = bft, pdf = TRUE, clean =
2007 Apr 18
1
undefined symbol: Rf_rownamesgets
I get the error undefined symbol: Rf_rownamesgets when I try to load my package, which include C++ code that calls that function. This is particularly strange since the code also calls Rf_classgets, and it loaded OK with just that. Can anyone tell me what's going on? For the record, I worked around this with the general purpose attribute setting commands and R_RowNamesSymbol. I
2007 Jun 12
1
bug in R environments? Was: [BioC] 'recursive default argument' error...
Dear developers, has anyone experienced the problem described below? Is it a bug in handling interrupts in R? Best, Oleg -------- Original Message -------- Subject: Re: [BioC] 'recursive default argument' error in GOENTREZID2GO From: Diego Diez <diez at kuicr.kyoto-u.ac.jp> ...steps that use to reach me to that point. It happens with any environment, or at least annotation
2007 Aug 30
1
suggesting \alias* for Rd files (in particular for S4 method documentation)
Hi, I do not know if everybody finds index pages of the html-formatted R help useful, but I know I am at least not the only one who uses them extensively to get the overview of functions and methods in a package (even for my own package). Problems arise, however, if a lot of S4 methods need to be documented blowing out the index with (generally irrelevant) entries like:
2000 Jun 26
2
Looking for protect()
Hello: This is a simple, I hope, question about the first example in section 3.6.4 of the manual, "Writing R extensions." I'm using R 1.1.0, and below I list some easy code that I got from section 3.6.4. When I try to compile the file out.c under NT 4, using VC++ 6.0, I get the following error messages: Compiling... out.c Linking... out.obj : error LNK2001: unresolved external
2007 Jul 23
1
CHAR(STRING_ELT( - OK but CHAR(asChar(STRING_ELT( - not, why?
Any idea why CHAR(asChar(STRING_ELT( produces NA whereas CHAR(STRING_ELT( gets a pointer to a string? It's generally expected that STRING_ELT should already be a character, but why the coercion does not work? Here is a simple example (consistent over R2.5.1-R2.6 rev 42284, I didn't check earlier versions, but it used to be different in 2.4): install.packages("inline")
2007 Jul 23
2
R2.6 bug in arithmetics of S4 classes inherited from 'array', or intended behavior?
Hi, I have an S4 class directly derived from 'array' as shown in the code below (EBImage package of Bioconductor 2.1, devel), it simply contains array adding a couple of slots: setClass ("Image", representation (colormode="integer", filename="character", compression="character", resolution="numeric", features="list" ),