read_metadata: Read the metadata from Google Sheets

View source: R/data_manipulation.R

read_metadataR Documentation

Read the metadata from Google Sheets

Description

To do: Cache and add an argument to update cache. Unlike the geocodes, this won't be stored in the data of this package since it's much faster to download the sheet than to geocode.

Usage

read_metadata(
  sheet_use = c("Prequel", "smFISH", "NGS barcoding", "ISS", "ROI selection",
    "De novo", "Analysis", "Prequel analysis"),
  cache = TRUE,
  cache_location = "./sheets_cache",
  update = FALSE
)

Arguments

sheet_use

Name of the sheet(s) to read.

cache

Logial, whether to cache.

cache_location

Where to save the cache

update

Logical, whether to update cache. If not, then the cache is read, and if the cache is absent, then a file contained within this package is read. This file within the package is updated with each version of this package. If TRUE, then the data is directly downloaded from Google Sheets, which is guaranteed to be up to date.

Value

A tibble for the sheet of interest.


pachterlab/museumst documentation built on July 25, 2022, 11:53 a.m.