## first create an module file from example data:
data("mod.intro")
f <- tempfile(fileext = ".mod")
write.module(mod.intro, f)
## read the module:
mod <- read.module(f)
## or create a connection yourself:
con <- file(f, "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