Chapter 67 Github initial setup
Joyce Robbins
Create a new repository. (For
cc21I started with a new repo on GitHub since I wanted the main branch to be calledmainand that did not seem possible with usethis functions or RStudio "Copy the following files from the previous version and edit as necessary. (Search for name of previous repo to catch all instances.)
_bookdown.yml
_common.R
_output.yml
appendix_initial_setup.Rmd
appendix_pull_request_tutorial.Rmd
DESCRIPTION
index.Rmd
sample_project.Rmd
/.github
/resources/sample_project
/resources/tutorial_pull_request_mergers
67.1 GitHub Actions
67.1.1 Secrets
Secret #1: Create a token here https://github.com/settings/tokens and paste it in a secret in the repo named
GH_PATSecret #2: Add a Secret called
EMAILwith GitHub email
See: https://github.com/r-lib/actions/tree/master/examples#managing-secrets
67.1.2 Create a gh-pages branch:
https://jiafulow.github.io/blog/2020/07/09/create-gh-pages-branch-in-existing-repo/
(May happen automatically???)
67.1.3 GitHub Pages in repo settings
(May happen automatically???)
67.2 DESCRIPTION file
Need a better process…
Downloaded submissions from CourseWorks
Create DESCRIPTION file. Add add dependencies with projthis::proj_update_deps()
https://twitter.com/ijlyttle/status/1370776366585614342
Add these Imports to the real DESCRIPTION file.
Found problematic packages by looking at reverse dependencies of the packages that failed to install:
devtools::revdep()
Also used pak::pkg_deps_tree()
Problems:
magick
rJava dependency of qdap