similar to: Portability of a C function

Displaying 20 results from an estimated 5000 matches similar to: "Portability of a C function"

2010 Feb 14
1
How S3method() is implemented and called? And when to use it?
R-exts.pdf discribes S3method a little bit. But I want to understand more on how it is called, implemented and when to use it. I don't find it in an R session. But I see S3method() in some NAMESPACE files. > S3method Error: object 'S3method' not found > ?S3method No documentation for 'S3method' in specified packages and libraries: you could try '??S3method' I
2010 Feb 11
2
LinkingTo and C++
Hello, I've been trying to make LinkingTo work when the package linked to has c++ code. I've put dumb packages to illustrate this emails here ; http://addictedtor.free.fr/misc/linkingto Package A defines this C++ class: class A { public: A() ; ~A() ; SEXP hello() ; } ; Package B has this function : SEXP say_hello(){ A a ; return a.hello() ; } headers of package A are copied
2012 Nov 09
1
What is the INDEX file for?
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 et animation du campus Universit? Paris Ouest Nanterre La D?fense
2010 Feb 15
3
executable R script under xp (to avoid migration toward Matlab or C++)
Hello, I discovered R two years ago and thanks to the R-community I managed to write some scripts to analyze my data stored in mysql databases. The only problem is that I am the only one using R in the lab. Colleagues mainly use Matlab (but not with mysql, only with text files) but regularly come to me to get data treated with R-scripts !!!. To allow the use of my scripts by other people, my
2020 Jan 14
2
possible bug in win R-devel in check/test environment
Hi, During my recent r2sundials development, I've came across a strange test failing during 'R CMD check' exclusively on win R-devel which I could reproduce with a minimal example that I present here. The toy packages testarma1 [1] and testarma2 [2] are minimal modifications of a skeleton package produced by RcppArmadillo.package.skeleton(). They are almost identical. The first
2009 Feb 25
4
Strange behavior of savePlot
Hi all, I am using savePlot in a loop for saving several graph but I get some graph in 553x552, some other in 1920x1119. How comes ? My data are almost all the same (same label, same xlim / ylim, almost same data. Only the color changes). I save them in bmp. Thanks for your help. Christophe
2012 Oct 13
2
Problem with a submission to jss
Hi the list, I am about to submit an article describing an R package to the Journal of Statistical Software but I encounter a strange behavior of LaTeX: the numbering of the figure is correct (1. 2. 3. ...), but when I make a reference to a figure, the section (or the subsection) number appears instead of the figure number. I check if this behavior occurs with the file example provide in the
2008 Mar 15
3
empty array
Hi the list Is it possible to create an empty matrix ? I do not mean an matrix with a single value that is NA (which is not empty) but a real empty one, with length=0. I do not understand why we have length(numeric()), length(factor()) and length(character()) to zero, and length(array()) to one... Any rason for that ? Thanks Christophe
2009 Mar 01
1
probleme with savePlot (to eps)
Hi the list, I used savePlot to export some eps graph but it seems that the graph file hold a bug. I include the graph.eps in a LaTeX file. Running latex is ok. But the dvi file contain some mistake, the graph overprint on some text and hide it. Then, when I try to convert it to another format, I get : Ignoring remaining special text following unkown PS operator: "SDict" Remainder
2007 Dec 09
3
Oriented object programming
Hi all Two questions: - I would like to learn more on oriented object programming with R. Is there any tutorial for that? - Without waking up a troll, I am not very familiar with diffusion list, I am more use to forum. On a diffusion list, how can I check if someone already asks a question? I mean, I went on CRAN-R website, I find the R mailing list archive. But is there a way to search
2012 Nov 06
1
LazyData: no / yes
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=24364 - then I load the set 'data(myData)' : memory used=39 668 If I use LazyData: yes', then I get - when I open a R session : memory used=20 908
2012 Nov 06
1
Depends/Imports/Suggest/Enhence
Hi the list In the DESCRIPTION file of my package foo0, I have: Depends: foo1 Imports: foo2 Suggest: foo3 Enhence: foo4 If I understand correctly, to install foo0 on my computer, I need to already have foo1, foo2, foo3. foo4 is not necessary. I my R sesssion, when I will write: library(foo0), then the package foo1 will be attach. foo2, foo3 and foo4 will not. Is that correct? But what is
2012 Nov 05
2
exporting 3D dynamic graph
Hi the list, Using misc3d, we can export 3d dynamic graph in pdf format. Is it also possible to export these graph into a format that we can publish on the web? 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 [[alternative HTML version deleted]]
2012 Nov 19
2
Is it possible to be sponsored by R?
Hi the list, I am a member of the organizing comity of the French Statistics Association (SFdS)'s conference. We are looking for sponsors. Some software (SAS, RITME, ...) are represented. Do you know if there is any possibility to be sponsored by R (or by an association close to R)? Do you think I can ask to the R fondation? Sincerely Christophe -- Christophe Genolini Maître de
2009 Dec 07
3
savePlot for Mac and / or Linux?
Hi all, In the package rtlu, I use the function savePlot. It is convenient since it let the user decide in which graphic format he wants his graph to be export. But when I run R CMD check, I get the following message : > rtlu(V1,fileOutput="First.tex",textBefore="\\section{Variable 1 to 3}",graphName="V1") Error in savePlot(filename = nomBarplot, type = type)
2009 Sep 09
1
Package that does not work until I re write the exactly the same code
Hi the list, I am writing a package in S4 and I do not manage to understand a bug. The "R CMD check" and the "R CMD build" both work. Here is links to the package (not on CRAN yet for the raison that I explain bellow): http://christophe.genolini.free.fr/aTelecharger/kml_0.5.zip http://christophe.genolini.free.fr/aTelecharger/kml_0.5.tar.gz Then I install the package and I
2015 May 15
2
Defining Constant variable in a package
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 NAMESPACE file? Christophe
2014 Mar 19
1
Memcheck: Invalid read of size 4
Hi the list, One of my package has a memory issue that I do not manage to understand. The Memtest notes is here: <http://www.stats.ox.ac.uk/pub/bdr/memtests/valgrind/kml-Ex.Rout> Here is the message that I get from Memtest --- 8< ---------------- ~ Fast KmL ~ ==27283== Invalid read of size 4 ==27283== at 0x10C5DF28: kml1 (kml.c:183) ... ==27283== by 0x10C5DE4F: kml1 (kml.c:151)
2009 Apr 19
2
Sweave: Changing the background color, adding a border
Hi all, I am using Sweave to produce a document. Unfortunately, I have to print several copies and I can't print them in color. So I would like to change the way of printing the code. I would like to print the code in a box with a black borderline and a grey background (quite classic). Is it possible to do it by changing some Schunk options? Christophe
2010 Mar 10
2
Dealing with an argument missing in ...
Hi the list I define a S3 function that can have a various number of argument using '...' When some arguments are missing, I would like to give them some default value: func.numeric <- function(x,...){ if(missing(y)){y<-3} } But it does not works... I precise that I can not put 'y' explicitly in the argument list since func is an S3 function, I cannot change its