viewRaw {hexView} | R Documentation |
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.
viewRaw(..., page = FALSE)
... |
Arguments passed to the function readRaw . |
page |
If TRUE , the output is sent to the application
set up to display text files as per getOption("pager") . |
This function is only called for its side-effect, which is to display the file.
Paul Murrell
viewRaw(hexViewFile("rawTest.txt"), width=8) viewRaw(hexViewFile("rawTest.txt"), machine="binary", width=4) # UNICODE text # rawTest.unicode created using Notepad on Windows viewRaw(hexViewFile("rawTest.unicode"), width=8) viewRaw(hexViewFile("rawTest.int"), human="int") viewRaw(hexViewFile("rawTest.real"), human="real", width=8, endian="big")