dpr_create_package: Create an R package for data

Description Usage Arguments Examples

View source: R/dpr_create_package.R

Description

This function automates the process of building a Github R package with the desired data stored in the 'raw-data' folder.

Usage

1
2
3
4
5
6
dpr_create_package(
  package_name,
  export_folder = getwd(),
  git_remote,
  list_data = NULL
)

Arguments

package_name

is the name of the created data R package.

export_folder

is the base folder where the package folder will be created.

git_remote

is the 'HTTPS' url of the GitHub remote.

list_data

is a list object of named ojbects that can be written to a csv. If NULL then no data writing actions happen.

Examples

1
2
dd <- read_csv(system.file("extdata", "Draft_vietnam.csv", package = "DataPushR"))
dpr_create_package(list_data = list(dat_draft = dd), package_name = "Test3", export_folder = getwd())

BYUIDSS/DataPushR documentation built on June 1, 2020, 11:58 p.m.