Create your R package

(Connect Rstudio to Github and push project to Github)

Posted by Chevy on February 21, 2024

1. Use Rstudio to create a new project for package

Reference:R Package Development > Start from a brand new environment.

2. Connecting Rstudio to Github


# 1. create token from github

# 2. set token to Rstudio, paste the PAT to Rstudio window
# gitcreds::gitcreds_set()

# 3. create repo based on local repo and push to github

# 4. create a vignette
usethis::use_vignette(name = "chunhui_vignette", title = "This is a vignette")