Re: [Rd] built-in NAMED(obj) from within R

2012-11-09 Thread Simon Urbanek
On Nov 9, 2012, at 9:46 PM, Hadley Wickham wrote: > On Friday, November 9, 2012, Simon Urbanek wrote: > > On Nov 9, 2012, at 8:00 AM, Hadley Wickham wrote: > > >>> The goal is to ascertain whether a copy of an object has been made. > >> > >> Then : > >> > >>?tracemem > >> > >> One demonstrat

Re: [Rd] built-in NAMED(obj) from within R

2012-11-09 Thread Hadley Wickham
On Friday, November 9, 2012, Simon Urbanek wrote: > > On Nov 9, 2012, at 8:00 AM, Hadley Wickham wrote: > > >>> The goal is to ascertain whether a copy of an object has been made. > >> > >> Then : > >> > >>?tracemem > >> > >> One demonstration of using both together is here : > >> > >>http

Re: [Rd] built-in NAMED(obj) from within R

2012-11-09 Thread Simon Urbanek
On Nov 9, 2012, at 8:00 AM, Hadley Wickham wrote: >>> The goal is to ascertain whether a copy of an object has been made. >> >> Then : >> >>?tracemem >> >> One demonstration of using both together is here : >> >>http://stackoverflow.com/a/10312843/403310 > > Note that tracemem detect

Re: [Rd] built-in NAMED(obj) from within R

2012-11-09 Thread Benjamin Tyner
Thanks Matthew and Hadley; that is exactly what I was looking for, and them some. Regards, Ben >>/ The goal is to ascertain whether a copy of an object has been made. />/ />/ Then : />/ />/ ?tracemem />/ />/ One demonstration of using both together is here : />/ />/ http://stackoverflo

Re: [Rd] Crash - cause 'memory not mapped'

2012-11-09 Thread Dirk Eddelbuettel
On 9 November 2012 at 14:31, niandra wrote: | extern "C" { | SEXP FiltroGaus(SEXP size1_r, SEXP size2_r, SEXP sigma_r) { [...] | The compilation go without errors but when in R i type | .C("FiltroGaus",3,3,2) You missed the part in "Writing R Extension" about .C() and .Call() arguments. You

Re: [Rd] Crash - cause 'memory not mapped'

2012-11-09 Thread gianluca mastrantonio
the error "memory non mapped" happen also if i use void FiltroGaus(SEXP size1_r, SEXP size2_r, SEXP sigma_r) instead SEXP FiltroGaus(SEXP size1_r, SEXP size2_r, SEXP sigma_r) { Il giorno 09/nov/2012, alle ore 23:58, Peter Langfelder ha scritto: > I'm not an expert, but from what I know you sh

[Rd] Crash - cause 'memory not mapped'

2012-11-09 Thread niandra
i'm using the following c++ code using namespace std; #include #include #include #include #include #include #include #include #include #include extern "C" { SEXP FiltroGaus(SEXP size1_r, SEXP size2_r, SEXP sigma_r) { int size1 = INTEGER(size1_r)[0]; int size2 = INTEGER(size2_r

Re: [Rd] unable to load shared object - opencv

2012-11-09 Thread gianluca mastrantonio
Thanks to all, now this problem is solved G.M. Il giorno 09/nov/2012, alle ore 01:09, Simon Urbanek ha scritto: > > On Nov 8, 2012, at 3:34 PM, niandra wrote: > >> Sorry but i'm really a beginner. >> >> If when i use opencv with Xcode i need to set the following path >> /System/Library/Fr

Re: [Rd] built-in NAMED(obj) from within R

2012-11-09 Thread Hadley Wickham
>> The goal is to ascertain whether a copy of an object has been made. > > Then : > > ?tracemem > > One demonstration of using both together is here : > > http://stackoverflow.com/a/10312843/403310 Note that tracemem detects duplications (in a technical R sense), not copies - i.e. x <- 1:

Re: [Rd] unable to load shared object - opencv

2012-11-09 Thread gianluca mastrantonio
Ok, sorry. I need the library libopencv_core.2.4.0.dylib and libopencv_highgui.2.4.0.dylib. Thanks G.M. Il giorno 09/nov/2012, alle ore 01:09, Simon Urbanek ha scritto: > > On Nov 8, 2012, at 3:34 PM, niandra wrote: > >> Sorry but i'm really a beginner. >> >> If when i use opencv with Xc

Re: [Rd] built-in NAMED(obj) from within R

2012-11-09 Thread Matthew Dowle
Benjamin Tyner gmail.com> writes: > > Hello, > > Is it possible to retrieve the 'named' field within the header (sxpinfo) > of a object, without resorting to a debugger, external code, etc? And much more than just NAMED : .Internal(inspect(x)) > The goal is to ascertain whether a copy

[Rd] built-in NAMED(obj) from within R

2012-11-09 Thread Benjamin Tyner
Hello, Is it possible to retrieve the 'named' field within the header (sxpinfo) of a object, without resorting to a debugger, external code, etc? In other words is there a built-in equivalent to the "getnamed" subroutine described here: http://tolstoy.newcastle.edu.au/R/e2/devel/07/09/4496.h

[Rd] What is the INDEX file for?

2012-11-09 Thread Christophe Genolini
Hi the list, In WRE (or in Rdindex), we can find how the INDEX is make, how to change it, but I do not manage to find the purpose of this file. So what is the INDEX file for? Thanks Christophe -- Christophe Genolini Maître de conférences en bio-statistique Vice président Communication interne