# NOT RUN {
# Make header from scratch, then add, modify, delete card images.
header <- newKwv('KEYWORD', 'VALUE', 'NOTE')
header <- addKwv('test1', 'plot size', header=header)
header <- addKwv('test2', 4294.95397809807, 'number', header=header)
header <- addKwv('test3', 4.29495397809807e50, 'big number', header=header)
header <- addKwv('test4', -4.29495397809807e50, 'big number', header=header)
header <- addKwv('test5', 'this is a very long value', 'number', header=header)
header <- addKwv('test6',
'this is a very very very very very very very very long value',
'note', header=header)
header <- addKwv('test7', 'value',
'very very very very very very very very very very long comment',
header=header)
header <- addKwv('test8', '0123456789112345678921234567893123456',
'format long number as string', header=header)
header <- addKwv('apostrophe', 'o\'\'malley',
'apostrophes are doubled in value strings', header=header)
for (i in 1:4) {
header <- addKwv(paste('test', 100+i, sep=''), 100+i, header=header)
}
header <- delKwv('test103', header=header)
header <- addComment('TEST103 should be missing from header', header=header)
header <- addHistory('This header generated by modifyHeader example',
header=header)
# show header
header
# }
Run the code above in your browser using DataLab