git_remove_lines: Removes a range numbered lines from a file

Description Usage Arguments Examples

Description

Removes a range numbered lines from a file

Usage

1

Arguments

location

Path to the file to be modified

start

First line to be removed

end

Last line to be removed

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.