As an extension of the recent discussion of "functions different in R
and S", what suggestions do people have for writing transportable code
for R/S beyond Venables and Ripley (2000, S Programming, pp. 202-203)?
For example, I recently found myself using the following construct:
if(version$major < 5){
# Function oldClass was introduced with the "new S"
# and is not present in R or S-Plus 2000
oldClass <- class
}
Similarly, I plan to define a function "gsub"
if(is.null(version$language)).
Do these seem reasonable? Are there other suggestions / standard /
compilations of thoughts?
Thanks,
Spencer Graves
______________________________________________
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help
- [R] removing leading/trailing blanks Douglas Grove
- Re: [R] removing leading/trailing blanks Sundar Dorai-Raj
- [R] Managing size of plots with many points Spencer Graves
- [R] Managing size of plots with many points Spencer Graves
- Re: [R] removing leading/trailing blanks white . denis