This flat file is only used to generate a vignette that explains how to create a new projet with GitHub. If you need to modify the functions or the unit tests, please go to the dedicated flat file.
Please note that Github-related functions are still a WIP
GITHUB_PAT
with api token
on https://github.com/settings/tokens
".Renviron"
usethis::edit_r_environ()
Define:
repo
(choose it as for package name. No special character, only dot if
needed)owner
of the group where you want to create your
projectIn this section, you will be able to manipulate your project. You will be able to create the first skeleton of your product, depending if it is a package, a Shiny app, etc. You will also be able to manage the GitHub project: create templates, or add new special issues (first issues, kick-off issue, etc.).
This code will clone the GitHub project locally, in a temporary directory.
create_r_project(
project_path,
type = c("package"),
name_licence = "Bob",
type_licence = usethis::use_mit_license
)
create_r_project(
project_path,
type = c("golem"),
name_licence = "Bob",
type_licence = usethis::use_mit_license
)
create_r_project(
project_path,
type = c("book"),
name_licence = "Bob",
type_licence = usethis::use_mit_license
)
Use your tools or vignette to manage your calendar for this project.
Tell all devs to run this in their own project
gert::git_config_set(repo = project_path, name = "commit.template", value = ".github/template_commit")
An issue template will be added for the issues that will be opened on
your project, based on the type
param it will be :