getREddyProcExampleDir: getREddyProcExampleDir

View source: R/Example.R

getREddyProcExampleDirR Documentation

getREddyProcExampleDir

Description

get the example directory inside temporary directory

Usage

getREddyProcExampleDir(isPreferParentDir = identical(Sys.getenv("NOT_CRAN"), 
    "true"), subDir = "REddyProcExamples")

Arguments

isPreferParentDir

logical scalar, whether to prefer temp parent directory instead of the R-session temp-Directory. See details.

subDir

the name of the subdirectory inside the tmp directory, where examples are stored

Details

If isPreferParentDir = FALSE (the default), the examples will be downloaded again for each new R-session in a session specific directory as given by tempdir. This corresponds to CRAN policy. IF TRUE, the parent of tempdir will be used, so that downloads of examples are preserved across R-sessions. This is the default if environment variable "NOT_CRAN" is defined, when running from testthat::check.

Author(s)

Department for Biogeochemical Integration at MPI-BGC, Jena, Germany <REddyProc-help@bgc-jena.mpg.de> [cph], Thomas Wutzler <twutz@bgc-jena.mpg.de> [aut, cre], Markus Reichstein <mreichstein@bgc-jena.mpg.de> [aut], Antje Maria Moffat <antje.moffat@bgc.mpg.de> [aut, trl], Olaf Menzer <omenzer@bgc-jena.mpg.de> [ctb], Mirco Migliavacca <mmiglia@bgc-jena.mpg.de> [aut], Kerstin Sickel <ksickel@bgc-jena.mpg.de> [ctb, trl], Ladislav <U+0160>igut <sigut.l@czechglobe.cz> [ctb]

See Also

getExamplePath


REddyProc documentation built on May 29, 2024, 12:10 p.m.