if (FALSE) {
## first create an module file from example data:
data("mod.intro")
write.module(mod.intro, "intro.mod")
## read the module:
mod <- read.module("intro.mod")
## or create a connection yourself:
con <- file("intro.mod", "rb")
## note that you can also read from URL connections!
mod2 <- read.module(con)
## don't forget to close the file:
close(con)
}
Run the code above in your browser using DataLab