get_df_file: Downloads and optionally loads a csv/feather file from a...

View source: R/get_data.R

get_df_fileR Documentation

Downloads and optionally loads a csv/feather file from a specified version of a dataset

Description

Downloads and optionally loads a csv/feather file from a specified version of a dataset

Usage

get_df_file(
  repo,
  filename,
  version = NULL,
  read = TRUE,
  col_types = NULL,
  version_already_handled = FALSE
)

Arguments

repo

dataset name: 'all_basiclevel', 'reliability', etc.

filename

name of a csv/feather file

version

version tag to checkout

read

If TRUE (default), loads the file. Otherwise, returns the path.

col_types

Passed to readr::read_csv when filename ends with ".csv".

Value

tibble for feather files, data.frame for csv files

Examples


## Not run: 
get_df_file('all_basiclevel', 'all_basiclevel_NA.csv', version = '0.6.4')

## End(Not run)

BergelsonLab/blabr documentation built on Dec. 22, 2024, 9:32 p.m.