Skip to contents

Writes a minimal ENVI header + binary pair for testing I/O functions.

Usage

hs_example_files(dir = tempdir())

Arguments

dir

Character. Directory to write to. Default tempdir().

Value

Character. Path to the written .hdr file (invisibly).

Examples

hdr_path <- hs_example_files()
file.exists(hdr_path)
#> [1] TRUE