With this script, you can easily update a git repo.
curl -# https://gist.githubusercontent.com/Menencia/6435756/raw/update.sh > update.sh
curl -# https://gist.githubusercontent.com/Menencia/6435756/raw/version.sh > version.sh
<div id="sidebar1" class="sidebar" aria-label="Main sidebar containing navigation links and some information" aria-hidden="true"> | |
<div class="sidebar__content"> | |
<span>whatever you want</span> | |
</div> | |
</div> | |
<button data-toggle-sidebar="sidebar1">Toggle Sidebar</button> |
<div id="sidebar" class="collapsed"> | |
</div> | |
<div id="content"> | |
<button title="Toggle sidebar"></button> | |
<h3>Some content</p> | |
</div> |
{"lastUpload":"2021-12-14T20:18:18.838Z","extensionVersion":"v3.4.3"} |
#### 1. Sign up at GitHub.com ################################################ | |
## If you do not have a GitHub account, sign up here: | |
## https://github.com/join | |
# ---------------------------------------------------------------------------- | |
#### 2. Install git ########################################################## | |
## If you do not have git installed, please do so: |
# find all Rmd files in R projects | |
list_Rmd_files <- dir(here::here(), pattern = "*.Rmd") | |
exclude_Rmd_files <- | |
dir(here::here(), pattern = "^_|references|other") | |
list_Rmd_files <- | |
list_Rmd_files[!(list_Rmd_files %in% exclude_Rmd_files)] |
# unname and rename all chunks in R project | |
purrr::map( | |
.x = list_Rmd_files, | |
.f = namer::unname_all_chunks | |
) | |
purrr::map( | |
.x = list_Rmd_files, | |
.f = namer::name_chunks | |
) |
# batch rename files | |
Book1 <- read.csv(file.choose()) | |
wd <- dirname(file.path(file.choose())) | |
for (i in 1:dim(Book1)[1]) { | |
oldfilepath <- paste0(wd, "/", Book1[i,2]) | |
# find all Rmd files in R projects | |
list_Rmd_files <- dir(here::here(), pattern = "*.Rmd") | |
exclude_Rmd_files <- | |
dir(here::here(), pattern = "^_|references|other") | |
list_Rmd_files <- | |
list_Rmd_files[!(list_Rmd_files %in% exclude_Rmd_files)] |
# update DESCRIPTION file for R projects | |
## find all Rmd files in R projects | |
list_Rmd_files <- dir(here::here(), pattern = "*.Rmd") | |
exclude_Rmd_files <- | |
dir(here::here(), pattern = "^_|references|other") |