data_file: Find a data file

View source: R/ensure-source.R

data_fileR Documentation

Find a data file

Description

This looks in the locations in the following order and returns the first path that exists:

Usage

data_file(...)

Arguments

...

file path to look for

Details

  • source dir ("data")

  • as well as the temp directory ("data/temp")

If there is not a file present in either of those, it returns NULL

Value

path to the file (or NULL if the file doesn't exist)


ursa-labs/arrowbench documentation built on July 8, 2023, 11:36 a.m.