fake_repo: Create a fake git repository in a specific folder

View source: R/fake_repo.R

fake_repoR Documentation

Create a fake git repository in a specific folder

Description

A fake repository allows to create reproducible examples for this package functions

Usage

fake_repo(path = tempfile(pattern = "git2r-"), as.package = FALSE)

Arguments

path

Path to fake repository

as.package

Logical. Whether to add R/ and vignettes/ directories to fake a package

Value

Character. Path of a fake repository used for reproducible examples. Fake repository contains a few files with an initiated git repository.

Examples

# Fake repository with git
fake_repo()
# Fake repository that looks like package with git
fake_repo(as.package = TRUE)

ThinkR-open/gitdown documentation built on Feb. 29, 2024, 7:06 a.m.