search for: packs4

Displaying 3 results from an estimated 3 matches for "packs4".

Did you mean: packs
2010 Apr 19
0
S4-based package failure: setGeneric example#1
Nevermind, I figured out my problem after looking at the packS4 package. I didn't realize that package.skeleton would build invalid R code. The warning hints at that, but I interpreted the warning to mean that the package.skeleton-generated code should be *edited*, and none of my edits gave me a workable package. Now I realize that the S4-driven code from...
2008 Mar 30
1
package.skeleton.S4
...ete-me")), domain = NA) } # Example # Save in myPack.r ---- 8< ---------------File myPack.r ----------------- `f1` <- function(x){cat("\nXXX F1 = ",x,"XXX\n")} `.f2` <- function(x){cat("\nXXX F2 = ",f1(x^2),"XXX\n")} # Save in myPackS4.r ---- 8< ---------------File myPackS4.r --------------- setClass("AA",representation(a="numeric")) setGeneric("aze",function(z){standardGeneric("aze")}) setMethod("print","AA",function(x){cat("C'est cool")}) setMetho...
2010 Aug 25
1
Documenting S4 Methods
I'm in the process of converting some S3 methods to S4 methods. I have this function : setGeneric("enrichmentCalc", function(rs, organism, seqLen, ...){standardGeneric("enrichmentCalc")}) setMethod("enrichmentCalc", c("GenomeDataList", "BSgenome"), function(rs, organism, seqLen, ...) { ... ... ... })