similar to: tutorial on codetools

Displaying 20 results from an estimated 40000 matches similar to: "tutorial on codetools"

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
2007 Nov 22
2
Clean programming with R
Hi all Is there any compiler for R ? By compiler, I mean something that check the cleanliness of the code : if we declare all the variables we use, if we don't use external variable from a function and so on... For exemple, something that will ring a bell on the following code (saying "line 4 : 'pp' undefine in function 'power' ") 1. pp <- 3 2. power <-
2010 Mar 27
2
Using SVN + SSH on windows
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 bits). 2/ I save the private key in a file 'private.ppk' on my computer. 3/ I
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
2008 May 31
1
problems with package.skeleton
Hi the list, I do not manage to build a package using package.skeleton. My pacakge in called 'partition' I run package.skeleton, then I write the Rd file. R CMD check partition is ok But R CMD build --binary partition does not compile. I get : .... WARNING * some HTML links may not be found installing R.css in c:/TEMP/Rinst322403595 .... cp: cannot stat
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
2008 Mar 30
4
tests Rin and Rout
> > 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 other at random, but none of them use tests... >>> Create tests/myPack.R
2011 Feb 03
1
bug in codetools/R CMD check?
Hi Mr Tierney, I have noticed an error message from R 1.12.x's CMD check for a while (apparently prof Ripley completely rewrote CMD check in R 1.12+) e.g.: http://bioconductor.org/checkResults/2.7/bioc-LATEST/snpMatrix/lamb2-checksrc.html ---------------- * checking R code for possible problems ... NOTE Warning: non-unique value when setting 'row.names': ?new? Error in
2013 Jan 16
2
Codetools Query (repost)
Sorry for reposting, i keep forgetting this should be plain text. Will not make this mistake again Hello, The following code moo <- function(a=1){ x=1; x=x+y} funs <- new.env() enter <- function(type, v, e, w){ assign(v, TRUE, funs) } library(codetools) collectUsage(moo, enterGlobal = enter) adds + to the environment funs i.e. funs: "=" "{" "+"
2007 Jul 25
1
codetools really optional for R CMD check?
After upgrading to R 2.5.1 on Debian, R CMD check gives * checking Rd cross-references ... WARNING Error in .find.package(package, lib.loc) : there is no package called 'codetools' Execution halted * checking for missing documentation entries ... WARNING etc The NEWS file says (for 2.5.0; I was on 2.4 before the recent upgrade) o New recommended package 'codetools' by Luke
2009 Mar 23
2
matplot does not considere the parametre lend (PR#13619)
Full_Name: Christophe Genolini Version: 2.8.1, but also 2.9 OS: Windows XP Submission from: (NULL) (82.225.59.146) 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") Gabor Grothendieck find the problem in matplot code: the ... is passed to plot
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)
2003 Jul 28
0
codetools
I've put together a package codetools with some tools for examining R source code. It is available at http://www.stat.uiowa.edu/~luke/R/codetools/codetools.tar.gz It requires a reasonably current version of R-devel. The main user functions are: checkUsage, checkUsageEnv, checkUsagePackage: Examine closure, closures in an environment, closures in a package, and report
2012 Nov 05
1
r-help or r-devel ?
Hi the list, I have some basic questions about "writing a package". On which list shall I post them? Theoretically, I am supposed to post them on r-devel, but all the questions on this list are very advance questions, not basic ones... So I don't know what to do. Christophe -- Christophe Genolini Maître de conférences en bio-statistique Vice président Communication interne et
2009 Mar 06
0
Bug in codetools ?
Hello, Is this a bug in codetools: > codetools::showTree( body( glm) ) ("{" (<- call (match.call)) (if (is.character family) (<- family (get family "function" (parent.frame)))) (if (is.function family) (<- family(family))) (if (is.null ($ family family)) ("{" (print family) (stop "'family' not recognized"))) (if (missing data)
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
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)
2008 Jun 13
1
package under unix
Hi the list, I write a package for clusterizing longitudinal data using a non parametric algorithm. I develop the package under windows. To be as user friendly as possible, the package use some graphical procedure to "show" to the user the evolution of the cluster construction, and to export the graph in a friendly way. Here are some example : http://christophe.genolini.free.fr/kml
2009 Jun 09
3
"R CMD check" does not find a mistake
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 documentation object 'LongData-class': Slots for class 'LongData' Code: id other time traj
2013 Apr 08
4
checkUsage from codetools shows errors when function uses functions from loaded packages
Dear list members, I frequently program small scripts and wrap them into functions to be able to check them with checkUsage. In case these functions (loaded via source or copy pasted to the R console) use functions from other packages, I get this error: no visible global function definition for ?xxxxxxx? For example: test = function() { require(plotrix) color.legend() }