similar to: R CMD check, c++ source linking errors

Displaying 20 results from an estimated 500 matches similar to: "R CMD check, c++ source linking errors"

2012 May 07
0
R CMD check, interfacing c++ linking errors
Hi there, I am trying to interface c++ code in R and make a package. With R CMD SHLIB the dll was created, but when I try R CMD check, I am getting 'undefined reference to..' linkage error messages. The relevant c++ source from conf-infomap.cpp: #include "conf-infomap.h" #include "R.h" // R functions #include "Rinternals.h" #include "Rmath.h" //
2012 May 08
1
R CMD check linking errors, when interfacing c++
Hi there, I am trying to interface c++ code in R and make a package. With R CMD SHLIB the dll was created, but when I try R CMD check, I am getting 'undefined reference to..' linkage error messages. The relevant c++ source from conf-infomap.cpp: #include "conf-infomap.h" #include "R.h" // R functions #include "Rinternals.h" #include "Rmath.h" //
2008 Jul 11
1
prototype.js breaks treemenus from pear HTML_TreeMenu in safari
hi all i see a very strange behavior in safari when using prototype.js and the pear HTML_TreeMenu to reproduce get prototype.js (http://www.prototypejs.org/assets/ 2008/1/25/prototype-1.6.0.2.js) and treemenu.js (http://cvs.php.net/ viewvc.cgi/pear/HTML_TreeMenu/TreeMenu.js?revision=1.22). and test the following html with safari on mac or windows (http:// www.apple.com/safari/download/)
2012 Aug 09
0
Treemap lost data
First: Im sorry for my bad english ;-) I use "portfolio" to create treemaps with "R". I've got a .csv dataset of all the schools in my city, containing 6 variables each with 1469 lines of data. When I create a treemap, 3 of these schools were not taken into account by "R". I dont know why. It doesn't matter where I put them in my dataset, they won't
2007 May 09
1
voronoi.mosaic chokes?
Hi all, I am running R 2.5.0 under Windows XP Media Center Edition. Here's a problem that's been stumping me for a few days now, and I can't find anything useful in the archives. I am using voronoi.mosaic (tripack package) to create proximity polygons for a study of vegetation competition and dynamics. The points lists are read in from a file for each plot, then 8 duplicates
2002 Nov 12
0
Treemaps
Has anyone implemented "treemaps" in R? A "treemap" is a visual display of a tree structure in which, at each level, the several nodes are represented by rectangles which fill the available area. The areas of the rectangles represent size, and their colors represent some other variable. There are several algorithms for deciding how to place the rectangles, ref:
2010 Jan 13
1
Recommended visualization for hierarchical data
Let's say I have data in the following schema that describes the number of purchases a company has received from each County in the US: State | County | Purchases --------------------------------------- NJ | Mercer | 550 CA | Orange | 23 .... I would like to visualize what states contribute the most to the overall total, and furthermore within those states, what Counties contribute the most.
2010 Jan 06
0
ZFS filesystem size mismatch
A ZFS file system reports 1007GB beeing used (df -h / zfs list). When doing a ''du -sh'' on the filesystem root, I only get appr. 300GB which is the correct size. The file system became full during Christmas and I increased the quota from 1 to 1.5 to 2TB and then decreased to 1.5TB. No reservations. Files and processes that filled up the file systems have been removed/stopped.
2012 Apr 28
1
How to custom colorscale in treemap
Hi~I'm new to R. I'm following these two tutorials to make a tree map, but the color scale isn't quite what I wanted. For map of the market, the color scale starts from 0(red) to max(green), what I wanted is 0(Green)-1(Red)-max(green). What's the easiest way to achieve this kind of divergent color scale? How shall I make my own palette and use it in the map.market or tree map
2020 Jun 16
1
[External] numericDeriv alters result of eval in R 4.0.1
Dear all As far as I could trace, looking at the function C function numeric_deriv, this unwanted behavior comes from the inner most loop in, at the very end of the function, for(i = 0, start = 0; i < LENGTH(theta); i++) { for(j = 0; j < LENGTH(VECTOR_ELT(pars, i)); j++, start += LENGTH(ans)) { SEXP ans_del; double origPar, xx, delta; origPar = REAL(VECTOR_ELT(pars, i))[j];
2001 Dec 03
0
Segfault in foreign:read.xport (PR#1192)
I get a segfault when trying to read a SAS transport file with rather long rows using read.xport from package foreign (version 0.4-7). The culprit seems to be these lines in xport_read in SASxport.c: 590 } else { 591 c = strchr(tmpchar, ' '); 592 *c = '\0'; 593
2012 Jun 18
0
igraph 0.6 released
Dear All, we have released version 0.6 of the igraph package today. This is a major new version, with a lot of new features, and (sadly) it is not completely compatible with code that was written for the previous igraph versions. (See "Major new features" below for details.) I have included below a list of (bigger) changes. Please see the details in the release notes and the NEWS
2012 Jun 18
0
igraph 0.6 released
Dear All, we have released version 0.6 of the igraph package today. This is a major new version, with a lot of new features, and (sadly) it is not completely compatible with code that was written for the previous igraph versions. (See "Major new features" below for details.) I have included below a list of (bigger) changes. Please see the details in the release notes and the NEWS
2007 Aug 16
0
call R function in c++ program
Hi all I don't know if my message are correct in this forums. I create a program in c++ who use statistical function. I want to execute this function in R (in particular for use packages ade4, lattice, bioconductor...) Until now, my program work for simple function ("plot", "rnorm"...) but I can't use library My class are : // in constructor int argc = 1;
2007 May 29
1
Use of Rf_duplicate
First, thanks to those of you who responded to my previous post about my code that was taking longer and longer to process. After following your suggestions, and I now thinking that the problem was some calls to Rf_duplicate in my C code. So I'm hoping I could get some clarification on what Rf_duplicate actually does. What is the real difference between PROTECT(y=x); and PROTECT (y =
2023 Mar 23
1
`dendrapply` Enhancements
Hello Aidan, Sorry for dropping this for a while. ? Thu, 2 Mar 2023 21:03:59 +0000 "Lakshman, Aidan H" <AHL27 at pitt.edu> ?????: > //after > curnode = eval(lang3(R_Bracket2Symbol, parent->node, DEND_IND), env); lang3() always constructs a new language object. If you do end up using eval(), it may make sense to move lang3() out of the loop and reuse the existing object
2003 Dec 17
1
Accessing row and col names of SEXP objects
Can someone lend me a hand with extracting the dimnames from a SEXP? I've looked through R-exts, but I couldn't find an example. Here is the code I'm using to grab the jth column name and print it, but the colnames I'm getting are garbage. None of the following are working. void printInfo(SEXP ts) { int j; for (j=0; j<col; j++) {
2006 Jul 18
2
send a list from R to C
Hello at all ! What is the correct form to give a list form R (e.g. list(c(-1,1), "TestFile") ) to C. I have no problems, if I don't use character and I have also no problems to give a character vector form R to C. But, if I combine real and strings in a list then I don't know the correct syntax. I try it with following (an example): SEXP writeFile(SEXP headerR){ Image
2006 Jul 11
2
Converting SEXP to primitive C types
I'm new to R development, so this may be a trivial question. In C, How do you convert a SEXP value returned by an R function to a primitive C type (int, double, char, array, etc.)? I've tried using the INTEGER(x), VECTOR_ELT(x,i), and similar functions found in /src/ include/Rinternals.h, but doing so results in incorrect results or a seg-fault. For example, I modified
2010 Mar 11
1
Shrinking a List
Hello, I create a VECSXP(call it A) with size N(~ 5000), i then proceed to fill the elements and find out I don't need to fill more than M (M<< N). Thus if i return A to the user's R code, he/she will see a list of length 5K of which N-M are NULLs. To avoid this, I create a new VECSXP B of length M and /duplicate/ the elements of A. Since I do this often, it appears to be wasteful,