insert_dataset: Inserts local copies of files from a dataset into a SAFE data...

View source: R/load_safe.R

insert_datasetR Documentation

Inserts local copies of files from a dataset into a SAFE data directory

Description

If files are embargoed or restricted, then users may request the datafiles from the authors. This function allows provided files to be incorporated into a SAFE data directory, so that they will then work seamlessly alongside openly available data.

Usage

insert_dataset(record_id, files)

Arguments

record_id

A SAFE dataset record id

files

A vector of files to insert into the data directory

Examples

   set_example_safe_dir()
   files <- system.file("safedata_example_dir",
                        "template_ClareWfunctiondata.xlsx",
                        package = "safedata")
   insert_dataset(1237719, files)
   dat <- load_safe_data(1237719, "Data")
   str(dat)
   unset_example_safe_dir()

safedata documentation built on April 25, 2022, 5:05 p.m.