search for: johanfaux

Displaying 8 results from an estimated 8 matches for "johanfaux".

2007 Jun 04
2
locked environment and inheritance
Hi, I have a S3 package with namespace called "myS3Pkg". Inside my package I would like to create a S4 class which extends (adds 2 slots) another S4 class from some other package. The class should be created in "myPkg" environment (and not global environment). Using: setClass("myS4class", representation("otherS4class", mydata = "numeric"),
2006 Jul 24
1
deparse - width.cutoff
...R What is the reason that "deparse" use an argument like "width.cutoff" ? Why the maximum cutoff is 500? I was manipulating an R formula and used "deparse". Since the length of user's formula was greater then 500, my code didnt work. thanks Johan johan Faux <johanfaux@yahoo.com> wrote: I have a question about "deparse" function in R What is the reason that "deparse" use an argument like "width.cutoff" ? Why the maximum cutoff is 500? I was manipulating an R formula and used "deparse". Since the length of user's for...
2007 Jan 30
3
silent loading of packages
I would like to turn off all the messages during library(aPackage) or require(aPackage) I tried different commands: invisible, capture.output, sink but none of them is working. For example, loading VGAM, gives a lot of unnecessary messages: > library(VGAM) Attaching package: 'VGAM' The following object(s) are masked from package:splines : bs The
2006 Jan 13
2
for loop should check the looping index !!
Hello , a<-c(1) for(i in 2:length(a)) do.something with a[[i]] I get : Error in a[[i]] : subscript out of bounds Am I missing something here? Doesnt R check the value of i inside "for" and if the condition is not tru, dont do anything ???? thanks, johan --------------------------------- Got holiday prints? See all the ways to get quality
2007 Mar 20
2
run a script during R CMD build
I would like R CMD build to run some R code which does some stuff and save the result as a file in /inst/docs folder. Is there any way of doing this. Thank you. Johan ____________________________________________________________________________________ We won't tell. Get more on shows you hate to love [[alternative HTML version deleted]]
2005 Sep 15
1
what's the best way to save global variables?
I am writing a kind of long program in R and I have some variables which I want to be globals. Where should I save them? I was thinking to create a function wich initialize all the global variables and then whenever I need them, I call this function. What if I create a file glob.R with var1<-val1 var2<-val2 ..... etc. How do I include this file in my other files/function . Is there in
2006 Oct 12
1
unevaluated expression
Hello, x<- "something(a+b) + c" is there any function F such that F(x) gives me the unevaluated value of x, i.e. something(a+b)+c I would appreciate any help on this thanks --------------------------------- [[alternative HTML version deleted]]
2007 May 28
1
do not eval vignettes during R CMD build
Hi, I was not able to find a way such that R CMD build run Sweave with eval=FALSE. I have a package where I want the R code in the vignettes to run only during R CMD check but not on R CMD build. Is there any way to achieve this ? thank you. ____________________________________________________________________________________Got a little couch potato? Check out fun summer activities