functions for flat file import/export + utilities
Jens Oehlschlägel-Akiyoshi
jens.oehlschlaegel-akiyoshi@mdfactory.de
Wed, 12 Jan 2000 18:03:50 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0004_01BF5D27.62306630
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by hermes.mdfactory.de id SAA07714
Dear R-Developers,
please find attached a set of drafted functions for flat file import and
export, partially extending existing functions, partially completely writ=
ten
as new code.
I thought you might be interested in those functions and the accompanying
utilities for padding and trimming.
Main features are
- supports several formats, i.e. fixed width and CSV (with one exception)
- supports templates describing relevant features of the flat file data,
including attributes of data.frame columns, storage.mode etc.
- special handling of factors and logicals
- handling of special characters like decimal seperator and escaped
quotation mark
- no perl and no seperator needed for fixed width format (and no problems
with quotation marks)
- reading fixed width format is based on simple function read.char.cols()=
,
which can be implemented more memory efficient in C
However, these functions are written from the perspective of a
non-R-developer, of course one could do it better. Also I don't know if i=
t
is a good idea traing to keep some compatibility (and naming) to
read.table() and write.table(), or if it is better to optimize new soluti=
ons
with new naming. I have done some testing, but of course there may be bug=
s
in it.
Having said this I would appreciate any feedback, criticisms, suggestions
for improvements, ...
Regards
--
Dr. Jens Oehlschl=E4gel-Akiyoshi
MD FACTORY GmbH
Bayerstrasse 21
80335 M=FCnchen
Tel.: 089 545 28-27
Fax.: 089 545 28-10
http://www.mdfactory.de
Standard Disclaimers: Opinions expressed here are personal
and are not otherwise represented.
------=_NextPart_000_0004_01BF5D27.62306630
Content-Type: application/octet-stream;
name="flatfile.r"
Content-Disposition: attachment;
filename="flatfile.r"
Content-Transfer-Encoding: base64
IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj
IyMjIyMjIyMjIyMjIyMjIyMjIyMjCiMgVGhpcyBpcyBhIGRyYWZ0IGZvciBhIHN1aXRlIG9mIFIg
ZnVuY3Rp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l
bXBsYXRlLCBkZikKIwojIFVUSUxJVElFUzogcGFkKCk7IHJwYWQoKSwgbHBhZCgpLCB0cmltKCks
IHJ0cmltKCksIGx0cmltKCksIHVucXVvdGF0ZSgpCiMKIyBERU1POiBkZW1vLnRlbXBsYXRlKGZp
bGUgPSB0ZW1wZmlsZSgpKQoKCiMjIHRlbXBsYXRlIGRlZmluaXRpb24gIyMjIyMjIyMjIyMjIyMj
IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIwojICAgdGVtcGxhdGUgPC0g
c3RydWN0dXJlKAojICAgICBsaXN0KAojICAgICAsIGZpbGUgPSBmaWxlICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAjIHBlciBmaWxlIChjaGFyYWN0ZXIpCiMgICAgICwgZW9s
ID0gZW9sICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgcGVyIGZpbGUg
KGNoYXJhY3RlcikKIyAgICAgLCBzZXAgPSBzZXAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgIyBwZXIgZmlsZSAoY2hhcmFjdGVyKQojICAgICAsIGRlYy5zZXAgPSBkZWMu
c2VwICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjIHBlciBmaWxlIChjaGFyYWN0ZXIp
CiMgICAgICwgbmEuc3RyaW5ncyA9IG5hLnN0cmluZ3MgICAgICAgICAgICAgICAgICAgICAgICAg
ICMgcGVyIGZpbGUsIGJ1dCBhbGxvdyBtb3JlIHRoYW4gb25lIChjaGFyYWN0ZXIgdmVjdG9yKQoj
ICAgICAsIHF1b3RhdGlvbi5tYXJrID0gcXVvdGF0aW9uLm1hcmsgICAgICAgICAgICAgICAgICAj
IHBlciBmaWxlIChjaGFyYWN0ZXIpLCBlLmcuIDwiPiBpbiBDU1YgCiMgICAgICwgZXNjYXBlZC5x
dW90YXRpb24ubWFyayA9IGVzY2FwZWQucXVvdGF0aW9uLm1h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ICAgICAgICAgIHggPC0gYyhGQUxTRSwgVFJVRSlbbWF0Y2goeCwgbG9naWNhbHMy
KV0KICAgICAgICAgIGF0dHJpYnV0ZXMoeCkgPC0gYXR0cmlidXRlczIKICAgICAgICAgIAogICAg
ICAgIH1lbHNlIGlmIChzdG9yYWdlLm1vZGUyPT0naW50ZWdlcicpewogICAgICAgICAgaWYgKCBh
bnkoIWlzLm5hKG1hdGNoKGF0dHJpYnV0ZXMyJGNsYXNzLCAnZmFjdG9yJykpKSApewogICAgICAg
ICAgICAjIyBoYW5kbGUgZmFjdG9ycwogICAgICAgICAgICBpZiAoaXMubnVsbChmYWN0b3JzMikp
ewogICAgICAgICAgICAgICMjIGFzc3VtZSBmYWN0b3IgaXMgcHJvcGVybHkgZGVzY3JpYmVkIGlu
IGF0dHJpYnV0ZXMKICAgICAgICAgICAgICBpZiAoZGVjIT0iLiIpCiAgICAgICAgICAgICAgICB4
IDwtIGdzdWIoZGVjLCAnLicsIHgsIGlnbm9yZS5jYXNlPUZBTFNFLCBleHRlbmRlZD1GQUxTRSkK
ICAgICAgICAgICAgICB4IDwtIGFzLmludGVnZXIoeCkKICAgICAgICAgICAgICBpZiAobWF4KHgp
Pmxlbmd0aChhdHRyaWJ1dGVzMiRsZXZlbHMpKQogICAgICAgICAgICAgICAgd2FybmluZygibWF4
IGZhY3RvciBjb2RlIG9mIiwgbWF4KHgpLCAid2hlcmUgb25seSIsIGxlbmd0aChhdHRyaWJ1dGVz
MiRsZXZlbHMpLCAibGV2ZWxzIikKICAgICAgICAgICAgICBhdHRyaWJ1dGVzKHgpIDwtIGF0dHJp
YnV0ZXMyCiAgICAgICAgICAgICAgCiAgICAgICAgICAgIH1lbHNlIGlmIChmYWN0b3JzMj09J25l
dycpewogICAgICAgICAgICAgICMjIGlnbm9yZSBhdHRyaWJ1dGVzCiAgICAgICAgICAgICAgeCA8
LSBmYWN0b3IoeCwgZXhjbHVkZT1uYS5zdHJpbmdzMikKICAgICAgICAgICAgICAKICAgIC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ZWxzIGZyb20gYXR0cmlidXRlcwogICAgICAgICAgICAgIGlm
IChkZWMhPSIuIikKICAgICAgICAgICAgICAgIHggPC0gZ3N1YihkZWMsICcuJywgeCwgaWdub3Jl
LmNhc2U9RkFMU0UsIGV4dGVuZGVkPUZBTFNFKQogICAgICAgICAgICAgICAgeCA8LSBhcy5pbnRl
Z2VyKHgpCiAgICAgICAgICAgICAgICBjb2QgPC0gbmFtZXModGFibGUoeCkpCiAgICAgICAgICAg
ICAgICBjb2QgPC0gY29kWyEoY29kICVpbiUgMTpsZW5ndGgoYXR0cmlidXRlczIkbGV2ZWxzKSld
CiAgICAgICAgICAgICAgICBpZiAobGVuZ3RoKGNvZCk+MCl7CiAgICAgICAgICAgICAgICAgIHdh
cm5pbmcocGFzdGUoImZhY3RvciB7IiwgcGFzdGUoYXR0cmlidXRlczIkbGV2ZWxzLCBjb2xsYXBz
ZT0iOyIpLCAifSB3aXRoIHVua25vd24gY29kZXMgeyIsIHBhc3RlKGNvZCwgY29sbGFwc2U9Ijsi
KSwgIn0iLCBzZXA9IiIpKQogICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVzMiRsZXZlbHMgPC0g
YyhhdHRyaWJ1dGVzMiRsZXZlbHMsIHBhc3RlKCJVbmtub3duQ29kZSIsIChsZW5ndGgoYXR0cmli
dXRlczIkbGV2ZWxzKSsxKTptYXgoYXMuaW50ZWdlcihjb2QpKSwgc2VwPSIiKSkKICAgICAgICAg
ICAgICAgIH0KICAgICAgICAgICAgICAgIGF0dHJpYnV0ZXMoeCkgPC0gYXR0cmlidXRlczIKICAg
ICAgICAgICAgfSAKICAgICAgICAgICAgCiAgICAgICAgICB9ZWxzZXsgIyMgaXMgaW50ZWdlcgog
ICAgICAgICAgICB4W21hdGNoKHgsIG5hLnN0cmluZ3MyLCBub21hdGNoPTApPjBdIDwtICdOQScK
ICAgICAgICAgICAgaWYgKGRlYyE9Ii4iKQogICAgICAgICAgICAgIHggPC0gZ3N1YihkZWMsICcu
Jyw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2VwID0g
c2VwLCBubGluZXMgPSAxLCAKICAgICAgICAgICAgICBzdHJpcC53aGl0ZSA9IHN0cmlwLndoaXRl
LCAjIyBhZGRlZCBieSBKT0EKICAgICAgICAgICAgICBxdWlldCA9IFRSVUUsIHNraXAgPSBza2lw
KQogICAgICAgICAgc2tpcCA8LSBza2lwICsgMQogICAgICAgICAgcm93LmxlbnMgPC0gcm93Lmxl
bnNbLTFdCiAgICAgICAgICBubGluZXMgPC0gbmxpbmVzIC0gMQogICAgICB9ZWxzZSBpZiAobWlz
c2luZyhjb2wubmFtZXMpKSAKICAgICAgICBjb2wubmFtZXMgPC0gcGFzdGUoIlYiLCAxOnJvdy5s
ZW5zWzFdLCBzZXAgPSAiIikKICAgICAgaWYgKGFueShzdHJpcC5xdW90YXRpb24ubWFya3MpKQog
ICAgICAgIGNvbC5uYW1lcyA8LSB1bnF1b3RhdGUoY29sLm5hbWVzLCBxdW90YXRpb24ubWFyaykg
IyMgYWRkZWQgYnkgSk9BCiAgICAKICAgICAgY29scyA8LSB1bmlxdWUocm93LmxlbnMpCiAgICAg
IGlmIChsZW5ndGgoY29scykgIT0gMSkgewogICAgICAgICAgY2F0KCJcbnJvdy5sZW5zPVxuIikK
ICAgICAgICAgIHByaW50KHJvdy5sZW5zKQogICAgICAgICAgc3RvcCgiYWxsIHJvd3MgbXVzdCBo
YXZlIHRoZSBzYW1lIGxlbmd0aC4iKQogICAgICB9CiAgICAgIHdoYXQgPC0gcmVwKGxpc3QoIiIp
LCBjb2xzKQogICAgICBpZiAocmxhYnApIAogICAgICAgIGNvbC5uYW1lcyA8LSBjKCJyb3cubmFt
ZXMiLCBjb2wubmFtZXMpCiAgICAgIG5hbWVzKHdoYXQpIDwtIGNvbC5uYW1lcwoKICAgIH0gIyBl
bmQgb2Ygbm9uLWZpeGVkLXdpZHRoCgoKICAgICMjIyBTdGFydCBKT0EgY2hhbmdlcwogICAgaWYg
KGZpeGVkLndpZHRoKXsKCiAgICAgIGRhdGEgPC0gc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lu
IDE6Y29scykgewogICAgIGlmIChmaXhlZC53aWR0aCAmJiBzdHJpcC53aGl0ZSkKICAgICAgIGNv
bHVtbiA8LSB0cmltKGRhdGFbW2ldXSwgJyBcdCcpCiAgICAgZWxzZQogICAgICAgY29sdW1uIDwt
IGRhdGFbW2ldXQogICAgIGlmIChzdHJpcC5xdW90YXRpb24ubWFya3NbaV0pCiAgICAgICBjb2x1
bW4gPC0gdW5xdW90YXRlKGNvbHVtbiwgcXVvdGF0aW9uLm1hcmspCiAgICAgaWYgKGVzY2FwZWQu
cXVvdGF0aW9uLm1hcmsgIT0gcXVvdGF0aW9uLm1hcmspCiAgICAgICBjb2x1bW4gPC0gZ3N1Yihl
c2NhcGVkLnF1b3RhdGlvbi5tYXJrLCBxdW90YXRpb24ubWFyaywgY29sdW1uLCBleHRlbmRlZD1G
QUxTRSkKICAgICAgIAogICAgIGRhdGFbW2ldXSA8LSB0eXBlLmNvbnZlcnQoY29sdW1uCiAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAsIGFzLmlzPWFzLmlzW2ldCiAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAsIHN0b3JhZ2UubW9kZT1zdG9yYWdlLm1vZGVbaV0KICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICwgYXR0cmlidXRlcz1hdHRyaWJ1dGVzW1tpXV0KICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgKQogICAgIAogICB9CiAgIAogICAKICAgcm93dmFyIDwt
IDAgIyMgYWRkZWQgYnkgSk9BIGZvciB0ZW1wbGF0ZQogICAKICAgIyMgU3RvcCBjaGFuZ2VkIGJ5
IEpPQSAgICAgICAgCiAgICAgICAgICAgIAogICAgaWYgKG1pc3Npbmcocm93Lm5hbWVzKSkgewog
ICAgICAgIGlmICghZml4ZWQud2lkdGggJiYgcmxhYnApIHsgICMjIGNoYW5nZWQgYnkgSk9BIChv
bmx5IHN2cykKICAgICAgICAgICAgcm93Lm5hbWVzIDwtIGRhd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ICAgICAgICAgICAgICAgICAgICMgcGVy
IGZpbGUgKGNoYXJhY3RlcikKICAgICAgICAgICwgc2VwID0gc2VwICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICMgcGVyIGZpbGUgKGNoYXJhY3RlcikKICAgICAgICAgICwg
ZGVjLnNlcCA9IGRlYy5zZXAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgcGVyIGZp
bGUgKGNoYXJhY3RlcikKICAgICAgICAgICwgbmEuc3RyaW5ncyA9IG5hLnN0cmluZ3MgICAgICAg
ICAgICAgICAgICAgICAgICAgICMgcGVyIGZpbGUsIGJ1dCBhbGxvdyBtb3JlIHRoYW4gb25lIChj
aGFyYWN0ZXIgdmVjdG9yKQogICAgICAgICAgLCBxdW90YXRpb24ubWFyayA9IHF1b3RhdGlvbi5t
YXJrICAgICAgICAgICAgICAgICAgIyBwZXIgZmlsZSAoY2hhcmFjdGVyKSwgZS5nLiA8Ij4gaW4g
Q1NWIAogICAgICAgICAgLCBlc2NhcGVkLnF1b3RhdGlvbi5tYXJrID0gZXNjYXBlZC5xdW90YXRp
b24ubWFyayAgIyBwZXIgZmlsZSAoY2hhcmFjdGVyKSwgZS5nLiA8IiI+IGluIENTVgogICAgICAg
ICAgLCBsb2dpY2FscyA9IGxvZ2ljYWxzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBw
ZXIgZmlsZSwgdHdvIHZhbHVlcyByZXByZXNlbnRpbmcgRkFMU0UgYW5kIFRSVUUgKG51bWVyaWNh
bCBvciBjaGFyYWN0ZXIgdmVjdG9yKQogICAgICAgICAgLCBmYWN0b3JzID0gZmFjdG9ycyAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBwZXIgZmlsZSwgd2V0aGVyIGZhY3RvcnMgaW4g
ZmlsZSBhcmUgJ2xldmVscycgb3IgJ2NvZGVzJyAoY2hhcmFjdGVyKQogICAgICAgICAgLCByb3cu
bmFtZXMubG9jID0gcm93dmFyICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBwZXIgZmlsZSwg
Y29sbm8gb2Ygcm93bmFtZXMsIDAgPSBubyByb3cubmFtZXMgaW4gZmlsZSAoaW50ZWdlcikKICAg
ICAgICAgICwgaGVhZGVyID0gaGVhZGVyICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICMgcGVyIGZpbGUsIHdoZXRoZXIgZmlyc3Qgcm93IGlzIGNvbC5uYW1lcyAobG9naWNhbCkKICAg
ICAgICAgICwgc3RyaXAud2hpdGUgPSBzdHJpcC53aGl0ZSAgICAgICAgICAgICAgICAgICAgICAg
ICMgcGVyIGZpbGUKICAgICAgICAgICwgY29sLm5hbWVzID0gY29sLm5hbWVzICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICMgcGVyIGNvbHVtbiwgaW5jbHVkaW5nIGNvcm5lci5uYW1lIChjaGFy
YWN0ZXIgdmVjdG9yKQogICAgICAgICAgLCBxdW90ZSA9IHN0cmlwLnF1b3RhdGlvbi5tYXJrcyAg
ICAgICAgICAgICAgICAgICAgIyBwZXIgY29sdW1uLCB3aGV0aGVyIGNvbHVtbiBpcyBxdW90ZWQg
KGxvZ2ljYWwgdmVjdG9yKQogICAgICAgICAgLCBzdG9yYWdlLm1vZGUgPSBzdG9yYWdlLm1vZGUg
ICAgICAgICAgICAgICAgICAgICAgIyBwZXIgY29sdW1uLCAoY2hhcmFjdGVyIHZlY3RvcikKICAg
ICAgICAgICwgd2lkdGhzID0gd2lkdGhzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICMgcGVyIGNvbHVtbiwgaW5jbHVkaW5nIHJvdy5uYW1lcy53aWR0aCAobGlzdCBvciBOVUxMKQog
ICAgICAgICAgLCBkaWdpdHMgPSBkaWdpdHMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIyBwZXIgY29sdW1uLCAobGlzdCBvciBOVUxMKQogICAgICAgICAgLCBhdHRyaWJ1dGVzID0g
YXR0cmlidXRl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IHByZXBhcmUgcGFyYW1ldGVycyB0byBmb3JtYXQgLyBwYWQgKGZvcm1hdEMgaXMgdG9v
IHNsb3cpCiAgICAjIHdpZHRocyBhbmQgZGlnaXRzIG1heSBjaGFuZ2UgbGF0ZXIKICAgIGZpeGVk
LndpZHRoIDwtICFpcy5udWxsKGRpZ2l0cykgfHwgIWlzLm51bGwod2lkdGhzKQogICAgaWYgKGZp
eGVkLndpZHRoKXsKCiAgICAgICAgaWYgKGlzLm51bGwod2lkdGhzKSkKICAgICAgICAgIHdpZHRo
cyA8LSByZXAobGlzdChOVUxMKSwgcCkKICAgICAgICBlbHNlIGlmIChsZW5ndGgod2lkdGhzKT09
MSkKICAgICAgICAgIGlmIChpcy5sb2dpY2FsKHdpZHRocykpCiAgICAgICAgICAgIGlmICh3aWR0
aHMpewogICAgICAgICAgICAgIHdpZHRocyA8LSByZXAobGlzdChOVUxMKSwgcCkKICAgICAgICAg
ICAgICByb3cubmFtZXMud2lkdGggPC0gTlVMTCAgIyMgbWFrZSBzaHVyZSBpdCBpc24ndCBUUlVF
IGZyb20gd3JhcHBlcgogICAgICAgICAgICB9ZWxzZQogICAgICAgICAgICAgIHN0b3AoIndpZHRo
PUZBTFNFIG5vdCBhbGxvd2VkIikKICAgICAgICAgIGVsc2UgCiAgICAgICAgICAgIHdpZHRocyA8
LSBhcy5saXN0KHJlcCh3aWR0aHMsIHApKQogICAgICAgIGVsc2UgaWYgKGxlbmd0aCh3aWR0aHMp
PT1wKSAKICAgICAgICAgIHdpZHRocyA8LSBhcy5saXN0KHdpZHRocykKICAgICAgICBlbHNlCiAg
ICAgICAgICBzdG9wKCJpbnZhbGlkIGxlbmd0aCBmb3Igd2lkdGhzIikKCiAgICAgICAgaWYgKGlz
Lm51bGwoZGlnaXRzKSkKICAgICAgICAgIGRpZ2l0cyA8LSByZXAobGlzdChOVUxMKSwgcCkKICAg
ICAgICBlbHNlIGlmIChsZW5ndGgoZGlnaXRzKT09MSkgCiAgICAgICAgICBkaWd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iAgICAgICAgICAgICAgIyB0ZXN0IGlmIHN1Y2Nlc3Nm
dWxsCiAgICAgICAgICAgICAgaWYgKHBhZC5tZXRob2Q9PSdhYmJyZXZpYXRlJyl7CiAgICAgICAg
ICAgICAgICBtYXgud2lkdGggPC0gbWF4KG5jaGFyKGNvbHVtbikpCiAgICAgICAgICAgICAgICBp
ZiAobWF4LndpZHRoPm1pbi53aWR0aCkKICAgICAgICAgICAgICAgICAgY29sdW1uIDwtIHBhZChj
b2x1bW4sIHdpZHRoPW1heC53aWR0aCkKICAgICAgICAgICAgICB9ZWxzZSAjIHBhZC5tZXRob2Qg
JWluJSBjKCJyY3V0IiwgImxjdXQiKQogICAgICAgICAgICAgICAgbWF4LndpZHRoIDwtIG1pbi53
aWR0aAogICAgICAgICAgICB9CiAgICAgICAgICAgIAogICAgICAgICAgfWVsc2V7ICMgY29sbW9k
ZVtpXSAlaW4lIGMoY29tcGxleCwgZG91YmxlLCBpbnRlZ2VyKQogICAgICAgICAgICAjIChhY3R1
YWwud2lkdGggYW5kIG5hLndpZHRoIDwgYWN0dWFsLndpZHRoIGFscmVhZHkgcGFkZGVkKQogICAg
ICAgICAgICBpZiAobWF4LndpZHRoPmFjdHVhbC53aWR0aCkKICAgICAgICAgICAgICBjb2x1bW4g
PC0gcGFkKGNvbHVtbiwgd2lkdGg9bWF4LndpZHRoKQogICAgICAgICAgfQoKICAgICAgICAgIGlm
ICghaXMubnVsbChjb2wubmFtZXMpKQogICAgICAgICAgICBjb2wubmFtZXNbaV0gPC0gcGFkKGNv
bC5uYW1lc1tpXSwgd2lkdGg9bWF4LndpZHRoKQoKICAgICAgICAgICMgd2FybmluZ3MgYW5kIG1h
aW50YWluaW5nIHdpZHRoW1tpXV0KICAgICAgICAgIGlmIChpcy5udWxsKHdpZHRoc1tbaV1dKSkK
ICAgICAgICAgICAgd2lkdGhzW1tpXV0gPC0gbWF4LndpZHRoCiAgICAgICAgICBlbHNlIGlmICht
YXgud2lkdGggPiB3aWR0aHN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MV0gPC0gdGVtcGxhdGUkY29y
bmVyLm5hbWUKICAgIH1lbHNlewogICAgICByb3cubmFtZXMubG9jIDwtIDAKICAgICAgY29sbW9k
ZSA8LSB0ZW1wbGF0ZSRzdG9yYWdlLm1vZGUKICAgIH0KCiAgICBxdW90YXRpb24ubWFyay53YXJu
aW5nIDwtIGlmZWxzZSh3YXJuLnF1b3RhdGlvbi5tYXJrLCBxdW90YXRpb24ubWFyay53YXJuaW5n
LCBOQSkKICAgIHNlcGVyYXRvci53YXJuaW5nIDwtIGlmZWxzZSh3YXJuLnNlcGVyYXRvciwgc2Vw
ZXJhdG9yLndhcm5pbmcsIE5BKQoKICAgIHRlbXBsYXRlIDwtIHN0cnVjdHVyZSgKICAgICAgbGlz
dCgKICAgICAgLCBmaWxlID0gZmlsZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIyBwZXIgZmlsZSAoY2hhcmFjdGVyKQogICAgICAsIGVvbCA9IGVvbCAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAjIHBlciBmaWxlIChjaGFyYWN0ZXIpCiAgICAgICwg
c2VwID0gc2VwICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgcGVyIGZp
bGUgKGNoYXJhY3RlcikKICAgICAgLCBkZWMuc2VwID0gZGVjLnNlcCAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgIyBwZXIgZmlsZSAoY2hhcmFjdGVyKQogICAgICAsIG5hLnN0cmluZ3Mg
PSBuYSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjIHBlciBmaWxlLCBidXQgYWxs
b3cgbW9yZSB0aGFuIG9uZSAoY2hhcmFjdGVyIHZlY3RvcikKICAgICAgLCBxdW90YXRpb24ubWFy
ayA9IHF1b3RhdGlvbi5tYXJrICAgICAgICAgICAgICAgICAgIyBwZXIgZmlsZSAoY2hhcmFjdGVy
KSwgZS5nLiA8Ij4gaW4gQ1NWIAogICAgICAsIGVzY2FwZWQucXVvdGF0aW9uLm1hcmsgPSBlc2Nh
cGVkLnF1b3RhdGlvbi5tYXJrICAjIHBlciBmaWxlIChjaGFyYWN0ZXIpLCBlLmcuIDwiIj4gaW4g
Q1NWCiAgICAgICwgbG9naWNhbHMgPSBsb2dpY2FscyAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICMgcGVyIGZpbGUsIHR3byB2YWx1ZXMgcmVwcmVzZW50aW5nIEZBTFNFIGFuZCBUUlVFIChu
dW1lcmljYWwgb3IgY2hhcmFjdGVyIHZlY3RvcikKICAgICAgLCBmYWN0b3JzID0gZmFjdG9ycyAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBwZXIgZmlsZSwgd2V0aGVyIGZhY3RvcnMg
aW4gZmlsZSBhcmUgJ2xldmVscycgb3IgJ2NvZGVzJyAoY2hhcmFjdGVyKQogICAgICAsIHJvdy5u
YW1lcy5sb2MgPSByb3cubmFtZXMubG9jICAgICAgICAgICAgICAgICAgICAjIHBlciBmaWxlLCBj
b2xubyBvZiByb3duYW1lcywgMCA9IG5vIHJvdy5uYW1lcyBpbiBmaWxlIChpbnRlZ2VyKQogICAg
ICAsIGhlYWRlciA9IGhlYWRlciAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjIHBl
ciBmaWxlLCB3aGV0aGVyIGZpcnN0IHJvdyBpcyBjb2wubmFtZXMgKGxvZ2ljYWwpCiAgICAgICwg
c3RyaXAud2hpdGUgPSBUUlVFICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgcGVyIGZp
bGUKICAgICAgLCBjb2wubmFtZXMgPSBjb2wubmFtZXMgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIyBwZXIgY29sdW1uLCBpbmNsdWRpbmcgY29ybmVyLm5hbWUgKGNoYXJhY3RlciB2ZWN0b3Ip
CiAgICAgICwgcXVvdGUgPSBxdW90ZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICMgcG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IG1ha2UgdGVtcGxhdGUgd2hpbGUgcmVhZGluZ1xuIikKCXgzIDwtIHJl
YWQodGVtcGxhdGUsIHRlbXBsYXRlLmF0dHJpYnV0ZT1UUlVFKQoJdGVtcGxhdGUyIDwtIGF0dHIo
eDMsICd0ZW1wbGF0ZScpCglhdHRyKHgzLCAndGVtcGxhdGUnKSA8LSBOVUxMCgljYXQoIi0tLSB0
ZW1wbGF0ZXMgc2hvdWxkIGJlIGVxdWFsIGV4Y2VwdCBmb3IgZGlnaXRzXG4iKQoJYWxsLmVxdWFs
KHRlbXBsYXRlLCB0ZW1wbGF0ZTIpCgljYXQoIi0tLSByZS53cml0aW5nIHVzaW5nIHRlbXBsYXRl
MiIpCgl0ZW1wbGF0ZTMgPC0gd3JpdGUudGVtcGxhdGUodGVtcGxhdGUyLCB4LCBhcHBlbmQ9VFJV
RSkKCWNhdCgiLS0tIHRlbXBsYXRlcyBzaG91bGQgYmUgZXF1YWwgZXhjZXB0IGZvciBkaWdpdHNc
biIpCglhbGwuZXF1YWwodGVtcGxhdGUyLCB0ZW1wbGF0ZTMpCgljYXQoIi0tLSB0aGlzIGlzIHRo
ZSBmaWxlIHdpdGggcmUud3JpdHRlbiBkYXRhIGFwcGVuZGVkOlxuIikKCWNhdChwYXN0ZSgiZmls
ZSAtPiIsIHNjYW4oZmlsZT1maWxlLCB3aGF0PScnLCBzZXA9J1xuJyksIGNvbGxhcHNlPSdcbicp
LCAnXG4nKQoKfQo=
------=_NextPart_000_0004_01BF5D27.62306630--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._