Skip to contents

Returns the path to metabodecon's temporary session directory. This directory equals subdirectory 'metabodecon' of R's temporary session directory base::tempdir() plus additional path normalization.

Usage

tmpdir(subdir = NULL, create = FALSE)

Arguments

subdir

Optional subdirectory within the temporary session directory.

create

Whether to create the directory if it does not yet exist.

Value

Returns the path to the temporary session directory.

Examples

tmpdir()
#> [1] "/tmp/RtmpuYVEs7/metabodecon"
tmpdir("simulate_spectra")
#> [1] "/tmp/RtmpuYVEs7/metabodecon/simulate_spectra"