I consistently get this issue when I use create_from_github() the first time.
> usethis::create_from_github("mpallocc/auto-go", "~/Desktop/r/playground/packages/")
✔ Setting `fork = TRUE`
✔ Creating '/Users/davis/Desktop/r/playground/packages/auto-go/'
✔ Forking 'mpallocc/auto-go'
✔ Cloning repo from 'git@github.com:DavisVaughan/auto-go.git' into '/Users/davis/Desktop/r/playground/packages/auto-go'
Error in libgit2::git_clone :
remote error: access denied or repository not exported: /1/nw/1d/b2/2d/439104554/594071937.git
It always works the second time.
I asked Jeroen and he said it takes a few seconds for a new repo to become clonable.
He pauses for 10 seconds in r-universe code here:
https://github.com/r-universe-org/setup-universes/blob/712f956acd73f878a0df0a4c8e0cb657019831e5/R/setup.R#L94-L100
I vote we do something similar, maybe pausing for 5 seconds and seeing if that is enough? Probably would be good to also notify the user that we are pausing for a second to let the repo become clonable.
I consistently get this issue when I use
create_from_github()the first time.It always works the second time.
I asked Jeroen and he said it takes a few seconds for a new repo to become clonable.
He pauses for 10 seconds in r-universe code here:
https://github.com/r-universe-org/setup-universes/blob/712f956acd73f878a0df0a4c8e0cb657019831e5/R/setup.R#L94-L100
I vote we do something similar, maybe pausing for 5 seconds and seeing if that is enough? Probably would be good to also notify the user that we are pausing for a second to let the repo become clonable.