Commands you’ll need to use:


Command 1: Set your name and email

# replace "Your Name" with your literal name (keep the quotes!!!)
# replace "your@email.com" with the email you used to sign up for github.com (keep the quotes!!!)
usethis::use_git_config(user.name = "Your Name", user.email = "your@email.com")



Command 2: Create Github Token

# will open github.com for you to make a token
usethis::create_github_token() 



Command 3: Tell RStudio Cloud about that token

# will pop up a window where you PASTE the secret token!
credentials::set_github_pat()



Command 4: Make sure it worked!

You should copy/paste the output from this command from the R Console into the Canvas assignment “Proof of RStudio Cloud/Github Setup.” Submitting this copy/pasted text fully completes the assignment!! Completing this on time is part of your HW2 grade.

usethis::git_sitrep()



Finally, you can update materials!!

ds4b.materials::update_materials()