jnolis/ggirl

not able to download package

Closed this issue · 3 comments

Error in get(genname, envir = envir) : object 'testthat_print' not found
Downloading GitHub repo jnolis/ggirl@master
Error: Failed to install 'ggirl' from GitHub:
  HTTP error 404.
  No commit found for the ref master

  Did you spell the repo owner (`Ijeamakaanyene`) and repo name (`contouR`) correctly?
  - If spelling is correct, check that you have the required permissions to access the repo.

looks like it's around the new remote dependency you added?

I had this same issue and solved it by getting a personal access token from github and putting the token in the call to remotes::install_github(). It should look like:

remotes::install_github("jnolis/ggirl", auth_token = "thisisthetoken")

Directions for getting a token are here. Hope this helps!

Thanks! In this case the issue was the remote dependency having main instead of master as a branch, but appreciate the help!

I didn't know you could pass the token straight to remotes::install_github! I always did it as a environmental variable, good to know.

Yes this issue was fixed by changing the description for the suggests contouR to include @main. It also made me find a second issue where the package fails to install if memoise isn't already installed (which has since been fixed).