Description Usage Arguments Value Author(s) References See Also Examples
Low-level function to read a BASE file (stream) from a connection or a file.
1 2 | ## Default S3 method:
readBaseFile(con, ..., verbose=FALSE)
|
con |
A |
... |
Arguments such as the important |
verbose |
Either a |
Returns a named list
structure containing the parsed BASE structure.
The names of the elements in the list are the same as the names (types)
of the sections as given by section header 'section'.
Henrik Bengtsson (http://www.braju.com/R/)
[1] BASE - BioArray Software Environment,
http://base.thep.lu.se/
[2] Carl Troein, How to write a plugin for BASE, April 2003.
http://base.thep.lu.se/documentation/development/plugins.txt
http://opensource.microarray.omrf.org/wiki/bin/view/BASE/PluginWritingHowto
writeBaseFile
().
readBaseFileSection
().
See stdin()
in showConnections to read from standard input.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Read a simple BASE file structure (adopted from [2])
filename <- system.file("data-ex", "baseExample.base", package="aroma.Base")
base <- readBaseFile(filename)
print(base)
# Write it back to file
tmpfile <- tempfile()
writeBaseFile(tmpfile, base)
# Read the newly create file
base2 <- readBaseFile(tmpfile)
file.remove(tmpfile)
# Compare with the original structure
stopifnot(equals(base, base2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.