read_git_csv: Read CSV from local Git repository

View source: R/read_git_csv.R

read_git_csvR Documentation

Read CSV from local Git repository

Description

Read CSV from local Git repository.

Usage

read_git_csv(repo, hex = NA, path, ...)

Arguments

repo:

organization and repostiory name (e.g., 'OHI-Science/ohi-global')

hex:

hex SHA hex of commit (e.g., 'c7c7329')

path:

path to csv file (e.g., 'eez2015/scores.csv')

Details

This function reads a csv file from a commit from a git repository.

Examples

## Not run: 
# get csv from github repository by SHA hex of commit
old_data <- read_git_csv('OHI-Science/ohi-global', 'c7c7329', 'eez2015/scores.csv')
head(old_data)

## End(Not run)


OHI-Science/ohicore documentation built on Dec. 10, 2023, 5:45 a.m.