View source: R/gh_rename_repo.R
gh_rename_repo | R Documentation |
Helper function for lesson_rename()
. This function is to catch GitHub up to speed with a locally renamed project. Uses the gh command line interface (which needs to be set up) and gh::gh()
to check existence of the repo and change it online.
gh_rename_repo(WD, gh_proj_name, prompt_user = TRUE)
WD |
a virtualized path to the lesson you want to rename. Easiest to specify "?" which will invoke |
gh_proj_name |
The (OLD) unique project title of this lesson as it is named on https://github.com/galacticpolymath. Not necessarily the same as the ShortTitle used in naming lesson presentations and worksheets; probably more specific with underscores. No default. |
prompt_user |
do you want to ask user if they def want to rename this before doing so? default=TRUE |
This function doesn't give you a free parameter for the new name. It will use the WD folder name to make sure the remote GitHub repo has the same name. Think of this as syncing local and GitHub remote names of the project.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.