UCSBCarpentry / Reproducible-Publications-with-RStudio-Quarto

Introduction to Reproducible Publications with Quarto
https://UCSBCarpentry.github.io/Reproducible-Publications-with-RStudio-Quarto/
Other
8 stars 10 forks source link

consider teaching Github Auth using the `usethis` package #113

Closed ilessing closed 9 months ago

ilessing commented 9 months ago

For Episode 10 Collaborating via Github – Introduction to Reproducible Publications with RStudio

The "UseThis" R package reputably eases creation and use of Github Personal Access Tokens (PAT) within RStudio/Quarto

Q: Could UseThis work for learners in the context of Collaboration episode of the workshop?

relates to #43

ilessing commented 9 months ago

see also: Designing a Reproducible and Collaborative Lab (RCL) - Using git and GitHub with RStudio

ilessing commented 9 months ago
install.packages("usethis")
usethis::create_github_token()
gitcreds::gitcreds_set()
usethis::git_sitrep()

above works well locally.

Need to test on JupyterHub!!

brunj7 commented 9 months ago

this is the command we use on Linux servers that do not cache the token automatically:

git config --global credential.helper 'cache --timeout=10000000'

timeout is in seconds

ilessing commented 9 months ago

results of testing with JupyterHub (LSIT provided instance)

ilessing commented 9 months ago

another documentation link: https://usethis.r-lib.org/articles/articles/git-credentials.html

rcurty commented 9 months ago

done