pub fn tmp_path() -> Result<PathBuf, BedErrorPlus>
Expand description

Return a path to a temporary directory.

Example

use ndarray as nd;
use bed_reader::{tmp_path, WriteOptions};
let output_folder = tmp_path()?;
let output_file = output_folder.join("small.bed");
let val = nd::array![
    [1.0, 0.0, f64::NAN, 0.0],
    [2.0, 0.0, f64::NAN, 2.0],
    [0.0, 1.0, 2.0, 0.0]
];
WriteOptions::builder(output_file).write(&val)?;