git_copy_repo: Copy a repository from GitHub

Description Usage Arguments Examples

Description

Copy a repository from GitHub

Usage

1
git_copy_repo(github_repo, copy_to = "repos")

Arguments

github_repo

The user and repository name

copy_to

Subfolder in the project where the repo will be copied to. Defaults to: "repos"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
git_copy_repo("tidyverse/dbplyr")

git_copy_file("dbplyr/vignettes/dbplyr.Rmd",
             "content/dplyr.Rmd")

git_replace_text("content/dplyr.Rmd",
             "Introduction to dbplyr",
             "Databases using dplyr" )

git_copy_file("dbplyr/vignettes/sql-translation.Rmd",
             "content/translation.Rmd")

git_remove_lines("content/translation.Rmd", 247, 248)

rstudio/gitdown documentation built on May 27, 2019, 1:45 p.m.