[Rd] Error "Warning in read_symbols_from_dll(so, rarch): this requires 'objdump.exe' to be on the PATH

2017-03-19 Thread Christophe Genolini
Hi all, I try to compile my package kml and I get the message Warning in read_symbols_from_dll(so,rarch): this requires 'objdump.exe' to be on the PATH I check 'Writing R Extensions' but I did not find any reference to this error. Does someone know how to fix that? Thank you very much for yo

Re: [Rd] Defining Constant variable in a package

2015-05-15 Thread Christophe Genolini
Hi Michael, It works perfectly, thanks a lot! Christophe > I'm guessing you just need to define them in /R/constants.R and then export() > them from the NAMESPACE. > > On Fri, May 15, 2015 at 2:32 AM, Christophe Genolini <mailto:cgeno...@u-paris10.fr>> wrote: >

[Rd] Defining Constant variable in a package

2015-05-15 Thread Christophe Genolini
Hi all, In my package, I define some constant. In the previous version of R, I just define then in "/data/constants.R" but it seems that it is no longer possible. Instead, I am asked to "define them in the namespace". I am not sure to understand what it means. Shall I define them in the NAMESPA

Re: [Rd] Memcheck: error in a switch using getGraphicsEvent

2014-03-21 Thread Christophe Genolini
Le 21/03/2014 01:45, Duncan Murdoch a écrit : On 2014-03-20, 8:02 PM, Christophe Genolini wrote: Hi the list, One of my package has an (other) error detected by memtest that I do not manage to understand. Here is the message that I get from Memtest --- 8< > try(choic

[Rd] Memcheck: error in a switch using getGraphicsEvent

2014-03-20 Thread Christophe Genolini
Hi the list, One of my package has an (other) error detected by memtest that I do not manage to understand. Here is the message that I get from Memtest --- 8< > try(choice(cld1)) Error in switch(EXPR = choix, Up = { : EXPR must be a length 1 vector --- 8< The

Re: [Rd] Memcheck: Invalid read of size 4

2014-03-20 Thread Christophe Genolini
Thanks a lot. Your correction works just fine. Any idea of what goes wrong for the line 151, which is int *clusterAffectation2=malloc(*nbInd * sizeof(int)); // lines 151 On 19 Mar 2014, at 22:58 , Christophe Genolini wrote: Hi the list, One of my package has a

[Rd] Memcheck: Invalid read of size 4

2014-03-19 Thread Christophe Genolini
bInd){ *convergenceTime = iter + 2; break; }else{}; } } --- 8< Do you know what is wrong in my C code? Thanks Christophe -- Christophe Genolini Maître de conférences en bio-statistique Université Paris Ouest Nanterre La Défense INSERM UMR 1027

[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

[Rd] Comments in the DESCRIPTION file

2012-11-07 Thread Christophe Genolini
Hi all, Is it possible to add comments in the DESCRIPTION file? Sincerely Christophe -- Christophe Genolini Maître de conférences en bio-statistique Vice président Communication interne et animation du campus Université Paris Ouest Nanterre La Défense

Re: [Rd] LazyData: no / yes

2012-11-06 Thread Christophe Genolini
7.42): my question has no real meaning. Thanks for pointing me the 7.42. Christophe On Nov 6, 2012, at 5:13 PM, Christophe Genolini wrote: I get it from windows tack manager (under Window 7). I guess it is in K something. My point was not about "how big is my dataset" (anyway, it is a

Re: [Rd] LazyData: no / yes

2012-11-06 Thread Christophe Genolini
On Nov 6, 2012, at 1:03 PM, Christophe Genolini wrote: Hi the list I have package foo0 with a big dataset 'myData'. In DESCRIPTION, if I use 'LazyData: no', then I get: - when I open a R session : memory used=20 908 - when I attach 'library(foo0)' : memory used=2

[Rd] LazyData: no / yes

2012-11-06 Thread Christophe Genolini
2 760... Where does the difference come from? Thanks Christophe -- Christophe Genolini Maître de conférences en bio-statistique Vice président Communication interne et animation du campus Université Paris Ouest Nanterre La Défense __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Christophe Genolini
is a function in foo2 that my package might use rarely - 'Suggest:foo3' if an example .Rd in foo0 needs a function in foo3 Right? Cheers, Simon Christophe -- Christophe Genolini Maître de conférences en bio-statistique Vice président Communication interne et animation du camp

[Rd] Depends/Imports/Suggest/Enhence

2012-11-06 Thread Christophe Genolini
), then the package foo1 will be attach. foo2, foo3 and foo4 will not. Is that correct? But what is the difference between Import and Suggest? Christophe -- Christophe Genolini Maître de conférences en bio-statistique Vice président Communication interne et animation du campus Université Paris

[Rd] generic '[' for a non-exported class

2010-04-07 Thread Christophe Genolini
Hi all, I define a S4 class 'foo'. I define '[' and '[<-' for it. I do not want to export foo, so I do not put it in NAMESPACE. I do not want to export '[' and '[<-' either (since the user can not use foo, no raison to give him access to '[' for foo). But R CMD check does not agree with me and

[Rd] Including a file in a Rd file

2010-04-06 Thread Christophe Genolini
Hi all, Is it possible to include a file in an .Rd file? For example, it might be convenient to write a file "author.Rd" and then include it in all the Rd file: \author{ \include{author.Rd} } Christophe __ R-devel@r-project.org mailing list https:

[Rd] Microsoft conspiracy against R?

2010-04-05 Thread Christophe Genolini
Hi the list, I am using getGraphicsEvent (pakage kml, function 'choice') to build a user friendly interface, but it seems that it is not linux/mac compatible. Is there anythink like getGraphicsEvent for R linux/mac? Christophe __ R-devel@r-project.or

[Rd] Difference Linux / Windows

2010-03-31 Thread Christophe Genolini
Hi the list, I am writing a package that happen to not be compatible with linux because I did not know that the function "savePlot" was available only on windows. Is there a list of "incompatible" function? How can I get this kind of information? Thanks Christophe

Re: [Rd] Possible improvements/clarifications for R-forge (Was: Re: Using SVN + SSH on windows)

2010-03-28 Thread Christophe Genolini
Wahou! I did not plan to start such a debate... It is really not hard to set it up. I am using a vanilla ssh (rather than putty) and that works fine all the time... The problem is not how hard or easy it is, the problem is how time consuming it is. I am pretty sur that I will manage to make it

Re: [Rd] Using SVN + SSH on windows

2010-03-27 Thread Christophe Genolini
Henrik Bengtsson a écrit : 2010/3/27 hb : On Sat, Mar 27, 2010 at 3:12 PM, Christophe Genolini wrote: Hi the list, I try to use R-Forge for developping a projet. I am using tortoise SVN (last version) but I do not manage to Commit. I read the R-Forge user Manual and some post on but

[Rd] Using SVN + SSH on windows

2010-03-27 Thread Christophe Genolini
Hi the list, I try to use R-Forge for developping a projet. I am using tortoise SVN (last version) but I do not manage to Commit. I read the R-Forge user Manual and some post on but I do not manage to find the solution. Here is what I did: 1/ I download 'puttygen.exe'. I generate a key (256

[Rd] S4: Documenting several fields at once

2010-03-22 Thread Christophe Genolini
Hi all, I defined an S4 object in which there is a lot of fields that have very similar names and purposes. --- 8< -- setClass( Class="foo", representation=representation( c2="list", c3="list", c4="list", c5="list", c6="list", c7="list", ...

Re: [Rd] Strange behavior of assign in a S4 method.

2010-03-16 Thread Christophe Genolini
wishes Christophe Best wishes Wolfgang Christophe Genolini scripsit 15/03/10 11:33: Hi the list, I define a method that want to change an object without assignation (foo(x) and not x<-foo(x)) using deparse and assign. But when the argument of the method does not match *exactly* with the

[Rd] Strange behavior of assign in a S4 method.

2010-03-15 Thread Christophe Genolini
Hi the list, I define a method that want to change an object without assignation (foo(x) and not x<-foo(x)) using deparse and assign. But when the argument of the method does not match *exactly* with the definition of the generic function, assign does not work... Anything wrong? Christophe #-

Re: [Rd] Portability of a C function

2010-02-14 Thread Christophe Genolini
hread "LinkingTo and C++". It is possible, and documented in WRE section 5.4 : http://cran.r-project.org/doc/manuals/R-exts.html#Registering-native-routines Romain On 02/14/2010 12:58 PM, Christophe Genolini wrote: Hi the list, In a package P1, I write a function f1 in C, potentially an

[Rd] Portability of a C function

2010-02-14 Thread Christophe Genolini
Hi the list, In a package P1, I write a function f1 in C, potentially an internal function (not to be called from R). In a package P2, I write a function f2 in C. The f2 function needs to use f1 from P1. Is it possible ? --- 8< In file P1.c - double f1(x,y){ } --- 8<

Re: [Rd] Canberra distance and binary distance

2010-02-06 Thread Christophe Genolini
rnal 1966. I do not have access, but here is the link : http://comjnl.oxfordjournals.org/cgi/content/abstract/9/1/60 Hope this helps. Christophe On 06/02/2010 10:39 AM, Christophe Genolini wrote: Hi the list, According to what I know, the Canberra distance between X et Y is : sum[ (

Re: [Rd] Canberra distance

2010-02-06 Thread Christophe Genolini
r Journal 1966. I do not have access, but here is the link : http://comjnl.oxfordjournals.org/cgi/content/abstract/9/1/60 Hope this helps. Christophe On 06/02/2010 10:39 AM, Christophe Genolini wrote: Hi the list, According to what I know, the Canberra distance between X et Y is : sum[ (|x_i -

[Rd] Canberra distance

2010-02-06 Thread Christophe Genolini
Hi the list, According to what I know, the Canberra distance between X et Y is : sum[ (|x_i - y_i|) / (|x_i|+|y_i|) ] (with | | denoting the function 'absolute value') In the source code of the canberra distance in the file distance.c, we find : sum = fabs(x[i1] + x[i2]); diff = fabs(x

Re: [Rd] Package that does not work until I re write the exactly the same code

2009-09-10 Thread Christophe Genolini
zLongData" --- 8< Everything seems fine. The code is correct. So I copy-and-paste the code that I get with getMethods("kml","ClusterizLongData") and I affect it to a function "func". Then I define again the method "kml". Then I run ag

[Rd] Package that does not work until I re write the exactly the same code

2009-09-09 Thread Christophe Genolini
t with getMethods("kml","ClusterizLongData") and I affect it to a function "func". Then I define again the method "kml". Then I run again the example that does not work before and it works... Any explanations? Christophe Genolini --- 8<

[Rd] Argument as.integer(NA) to a function C

2009-06-18 Thread Christophe Genolini
Hi the list, I am writing a R function that call a C function. The C function needs integers but I do not manage to give a NA integer as argument : --- C code --- void essai(int *t){ Rprintf("\nT0=%i T1=%i T2=%i T3=%i",t[0],t[1],t[2],t[3]); } --- R --- boub <- c(1,2,3,4) .C("pour",as.intege

[Rd] "median" accepting ordered factor

2009-06-13 Thread Christophe Genolini
Hi the list, The function median start by exclude the factor. Indeed, it not possible to calculate the median for a factor, but it is possible to evaluate the median for an ordered factor. Would it be possible to change the median function to accept also ordered factor? This would be helpful sp

[Rd] Inheritance before ANY...

2009-06-09 Thread Christophe Genolini
Hi all, I am programming using S4. I define two classes, "B" is inheriting from "A". Apparently (at least since version 2.9.0 ?), when the correct signature is not find, R prefers to chose a signature in the ancestor BEFORE a signature in the class. This is very strange to me... If I define p

[Rd] "R CMD check" does not find a mistake

2009-06-09 Thread Christophe Genolini
Hi the list, I build a package. They was a mistake in it, but R CMD check did not find it. Is that normal ? Here is what Kurt gets (which is right, I did this mistake): --- 8< * checking for code/documentation mismatches ... WARNING S4 class codoc mismatches from documentatio

Re: [Rd] savePlot export "strange" eps (PR#13620)

2009-03-24 Thread Christophe Genolini
bonjour bonjour2 bonjour3 \begin{center} \includegraphics[width=12cm]{toto.eps} \end{center} Then "bonjour2 bonjour3" is hidden by the graph. Version: 2.8.1 OS: Windows XP LaTeX : Miktex 2.7 Christophe cgeno...@u-paris10.fr wrote: Full_Name: Christophe Genolini Version: 2.8.1 OS

[Rd] matplot and lend="butt"

2009-03-23 Thread Christophe Genolini
Hi the list, I am using matplot with the option lend="butt", but only the first line (the black) is printed correctly : > matplot(matrix(1:9,3),type="c",lwd=10,lty=1,lend="butt") Is it a bug ? I am using R2.8.1 under windows XP pack3. Christophe

Re: [Rd] getGraphicsEvent in an example

2009-02-18 Thread Christophe Genolini
Greg Snow a écrit : Just wrap the example in either \dontrun{} or if(interactive()){ } Thanks. Your solution gives me an other idea : try(myFunction) works as well. Christophe That way that example will be skipped when the automatic tests are done, but will still be available for a read

[Rd] getGraphicsEvent in an example

2009-02-17 Thread Christophe Genolini
Hi the list, Is there a way to include a function using a getGraphicsEvent in the \examples section? Christophe __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] \usage without \alias

2009-02-10 Thread Christophe Genolini
Hi the list, I am checking a package and I get a warnings : --- 8< Objects in \usage without \alias in documentation object 'plot,Calinski' --- 8< 'Calinski' is a S4 class and I define a S4 method for ploting it. Here is my plotCalinski.rd file : --- 8< \name{plot,Calinski} \a

Re: [Rd] Strange behavior of C compiled program

2009-02-09 Thread Christophe Genolini
send a report to Microsoft). Is there a debuger that can run the C code with some R in it ? And what kind of mistake can provoque such a crash ? Thanks Christophe So I thaught that I find t On 08/02/2009 5:37 PM, Christophe Genolini wrote: Hi the list, I need to include some C code in R, but

[Rd] Strange behavior of C compiled program

2009-02-08 Thread Christophe Genolini
Hi the list, I need to include some C code in R, but the behavior of the C code is strange : Here is my code : --- 8< --- Rprintf("\n mTraj=%f mClus=%f",mTraj[i+nbId*c],mClustersCenter[j+nbClusters*c]); Rprintf("\nDistA=%d Tmp=%d",dist,tmp); tmp = mTraj[i+nbId* c] - mCl

[Rd] unlist change the ordered type

2008-10-24 Thread Christophe Genolini
Hi the list, unlist respect the all the atomic type except orderd (it change of ordered into factor) : ### integer class(unlist(list(1:5,1:3))) #[1] "integer" ### numeric class(unlist(list(1.2,3.5))) #[1] "numeric" ### character class(unlist(list("e","e"))) #[1] "character" ### factor class

Re: [Rd] package.skeleton does invalide regular name...

2008-07-15 Thread Christophe Genolini
By the way, will it be a big change to allow the user to give the name of a directories instead of a file ? The following code : code_file=c("dir1\file1.r","dir1\file2.r","dir1\file3.r") willl become : code_file=c("dir1\") Then, reconizing that dir1\ is a directories, skeleton.package will in

Re: [Rd] package.skeleton.S4

2008-04-05 Thread Christophe Genolini
Am I suppose to repport only but, or can I also make some comments? Well, I guess if I am not suppose to comment, it is easy to ignore them... Concerning the help file, some other examples might be a good complement to the existing one. --- 8< -- \examples{ require(stats) ## two

Re: [Rd] package.skeleton.S4

2008-04-05 Thread Christophe Genolini
>> And I am not sure I will be able to compile it... > > It's also not that hard I do not understand what I have to do... More precisely, I under windows XP32bit. As you told me, I downloaded the version 2.7alpha exactly like I did with the 2.6.2, I install it exactly the same way and it see

Re: [Rd] package.skeleton.S4

2008-04-05 Thread Christophe Genolini
> Hmm, please reconsider! > We have been providing R 2.7.0 alpha in all the usual platform > flavors for almost two weeks now and we *REALLY* would like > it to be used and get feedback on new features *BEFORE* release > if at all possible! > > Ok ok ok, I will... But I do not find the win

Re: [Rd] tests Rin and Rout

2008-04-05 Thread Christophe Genolini
Prof Brian Ripley a écrit : > Recommended packages cluster codetools foreign lattice nlme and rpart > have tests, for example. (As do standard packages grDevices, grid and > stats.) > Thanks for your help. Concerning .Rin, I check all the package you point, but none of them use it. Does someone

Re: [Rd] package.skeleton.S4

2008-04-05 Thread Christophe Genolini
John Chambers a écrit : > Christophe, > > Thanks for your work; unfortunately, at the same time you were > developing your version, the original function was being extended in > the same direction. Next time, I will try to not be late... > Version 2.7 of R is currently in alpha testing I try us

Re: [Rd] tests Rin and Rout

2008-04-05 Thread Christophe Genolini
> hmm, I see 219 out 1378 CRAN packages having a 'tests' > subdirectory, so it seems you have been a bit unlucky. ;-) > Luck has probably nothing related with my failure. I just try to look in packages recommanded by Pr Brian Ripley (like codetools, foreign, lattice) and I did not find any tes

[Rd] tests Rin and Rout

2008-03-30 Thread Christophe Genolini
> > Generally I find it's good to look at examples that work. For > examples of packages using tests, look at source packages on CRAN. > Run the tests on them (using R CMD check), and see what gets produced. > Do you have the name of a package that use it ? I try the 10 first package, and 10

[Rd] package.skeleton.S4

2008-03-30 Thread Christophe Genolini
Hi the devel list. I am adapting the package.skeleton to S4 classes and methods I would have been very proud to post a new working function on this list. Unfortunately, I do not manage to solve all the problems. Mainly - sys.source does not compile a file with setClass - dumpMethod does not exi

Re: [Rd] Great tool

2008-03-06 Thread Christophe Genolini
I believe that codetools is "incredibly usefull", but it is very difficult to learn how to use it... Anythink else thant reading the code available ? For exemple, how to track down free varaible ? I try findGlobals(get(functionNames),FALSE)$variables but it does not work... Christophe Gabor

Re: [Rd] S4 : declaration of inheritance

2008-02-25 Thread christophe . genolini
Sorry, I make a mistake... I meant : what the difference between setClass("myClass", representation("fatherClass",x="numeric") or setClass("myClass", representation(x="numeric"), contains="fatherClass" > setClass("myClass", >representation(x="numeric"), >conta

[Rd] S4 : declaration of inheritance

2008-02-25 Thread christophe . genolini
Hi the list, There is two way to declare a new object with inheritence : one can do setMethod("myClass", representation("fatherClass",x="numeric") or setMethod("myClass", representation(x="numeric"), containt="fatherClass" Is there any difference ? What is the usal way ? C

Re: [Rd] Standard method for S4 object

2008-02-24 Thread Christophe Genolini
e. > > Also, out of curiosity, what do your methods for `get' and `set' for each > slot look like? Is there any advantage to using such methods over using > > slot(objectOfYourClass, "aSlotName") # for get, and > slot(objectOfYourClass, "aSlotName") &l

[Rd] Standard method for S4 object

2008-02-24 Thread Christophe Genolini
Hi the list, I am defining a new class. Shortly, I will submit a package with it. Before, I would like to know if there is a kind of "non official list" of what method a new S4 object should have. More precisely, personally, I use 'print', 'summary' and 'plot' a lot. So for my new class, I defi