View source: R/utils_source_information.R
iso_get_source_file_structure | R Documentation |
If an iso file is read with the debug mode on, the source data (e.g. binary file) is stored with the file. By default this is not the case because it makes file objects unnecessarily large. Use these functions to retrieve and explore source structures.
iso_get_source_file_structure(iso_file)
iso_print_source_file_structure(x, ..., save_to_file = NULL)
## S3 method for class 'iso_file'
iso_print_source_file_structure(x, ..., save_to_file = NULL)
## S3 method for class 'binary_isodat_file'
iso_print_source_file_structure(
x,
start = 1,
length = NULL,
end = start + length,
...,
save_to_file = NULL
)
## S3 method for class 'binary_isodat_file'
print(x, start = x$pos, length = 200, ...)
iso_file |
iso file object |
x |
the object for which to print the source file structure. |
... |
additional parameters depending on source file types |
save_to_file |
whether to save the source file structure to a text file (provide file path, will overwrite anything already in the file!) in addition to printing it out |
start |
starting position in the binary file to print from (prints the first block that spans this range) |
length |
length in the binary file to print to (by default |
end |
until which point in the binary file to print to. If provided, overrides whatever is specified in |
Typically these functions are used for debugging purposes only.
isoreader:::iso_turn_debug_on()
iso_get_reader_example("dual_inlet_example.did") |>
iso_read_dual_inlet() |>
iso_get_source_file_structure() |>
iso_print_source_file_structure(length = 500)
## Not run:
isoreader:::iso_turn_debug_on()
iso_get_reader_example("dual_inlet_example.did") |>
iso_read_dual_inlet() |>
iso_get_source_file_structure() |>
iso_print_source_file_structure(save_to_file = "structure.txt")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.