add_data_to_lesson: Adds a data object to both the master and binder branch

Description Usage Arguments Details Value

View source: R/create_project.R

Description

Because the course repo uses both a master and binder branch, we need to make sure the data objects are going in both branches.

Usage

1

Arguments

dataobj

- a data object, usually a tibble or data.frame

Details

The function will apply git stash to the repository before doing anything. Then the object is added to both the master and binder branch using usethis::use_data() before being committed to both.

The function then switches back to the current repository and applies the stash to get back any uncommitted changes.

Value

added and committed objects to both the binder and master branches


laderast/decampr documentation built on Feb. 25, 2020, 7:12 a.m.