Org tables are very human-readable plain-text tables
that look like
| Column1 | Column2 |
|---------+---------|
| 1 | 2 |
| 3 | 4 |
A line that starts with ‘|’ (after optional
whitespace) is considered a table row; a line that starts
with ‘|-’ (after optional whitespace) is a
horizontal rule. Rows before the first horizontal rule
are header lines (see the Org manual).
Depending on the settings of strip.format and
strip.horiz.rules, format instructions such as
<5> and are discarded. Then the function uses
read.csv to read the remainder of
the file/table.
When table.name is specified, the function looks
for a line that starts with #+NAME: <table.name>
and reads the table that follows that line.
For empty files, readOrg behaves like
read.csv: when completely empty, it fails;
when headers are found, a zero-row data.frame is
returned.