Read in a list previously saved to an ASCII file by various R functions such
as dput
, dump
, and writeList
. The latter can render
lists in a convenient PBSmodelling format. The function readList
detects the format automatically.
For information about the PBSmodelling format, see writeList
.
readList(fname)
file name of the text file containing the list.
Returns a list object from ASCII files originally formatted in one of the
following ways:
"D"
= created by the R functions dput
or dump
;
"R"
= R list object that uses `structure' (e.g., Windows History file);
"P"
= PBS-formatted file (see writeList
);
"C"
= comment-delimited file (e.g., Awatea/Coleraine input files).
When importing a list in the PBSmodelling
("P"
) format,
if two list elements share the same name, the list will import
incorrectly.