so_doi: Return the DOI of the SCAR Diet and Energetics Database being...

View source: R/doi.R

so_doiR Documentation

Return the DOI of the SCAR Diet and Energetics Database being used

Description

Return the DOI of the SCAR Diet and Energetics Database being used

Usage

so_doi(cache_directory, ...)

Arguments

cache_directory

string: (optional) the local cache directory containing the data. If no valid DOI is found in that directory, the return value will be NA_character_. If cache_directory is not supplied, the DOI of the data last accessed in this session will be returned (and if no data has yet been accessed, the most recent known DOI will be returned)

...

: additional parameters passed to so_diet etc

Value

string

See Also

so_diet, so_dna_diet, so_isotopes, so_energetics, so_lipids

Examples

## Not run: 
  xd <- so_diet(cache_directory = "session")
  ## the DOI of the data just read
  so_doi()

  ## the DOI of the data in a particular cache directory
  so_doi(cache_directory = "c:/my/cache/dir")

## End(Not run)


SCAR/sohungry documentation built on Nov. 2, 2023, 4:19 p.m.