Description Usage Arguments Details Author(s) See Also Examples
Displays the raw bytes of a file like a hex editor, showing offsets within the file, raw bytes in binary or hexadecimal form, and a human-readable representation of the bytes as either ASCII characters, integers, or real values. The file is broken up into blocks according to a supplied file format specification.
1 | viewFormat(..., page = FALSE)
|
... |
Arguments passed to the function |
page |
If |
This function is only called for its side-effect, which is to display the file.
Paul Murrell
1 2 3 4 | viewFormat(hexViewFile("rawTest.int"),
memFormat(int1=integer4, int2=integer4))
viewFormat(hexViewFile("rawTest.int"),
memFormat(integers=vectorBlock(integer4, 20)))
|
======int1
0 : 01 00 00 00 | 1
======int2
4 : 02 00 00 00 | 2
=======integers
0 : 01 00 00 00 02 00 00 00 03 00 00 00 04 00 00 00 | 1 2 3 4
16 : 05 00 00 00 06 00 00 00 07 00 00 00 08 00 00 00 | 5 6 7 8
32 : 09 00 00 00 0a 00 00 00 0b 00 00 00 0c 00 00 00 | 9 10 11 12
48 : 0d 00 00 00 0e 00 00 00 0f 00 00 00 10 00 00 00 | 13 14 15 16
64 : 11 00 00 00 12 00 00 00 13 00 00 00 14 00 00 00 | 17 18 19 20
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.