Devtools: difficulty getting Github info

Created on 31 Jan 2016  路  4Comments  路  Source: r-lib/devtools

I'd love to replace my clunky, organically grown reverse dependency checking machinery with devtools's version ... however, when I try to run revdep_check() on a local copy of the lme4 package I get "Unknown Github repo format" when it tries to run

devtools:::remote_metadata(as.package("lme4"))

to retrieve the dependency information.

I traced this as far as github_remote parse, where x is equal to ssh://[email protected]/lme4/lme4 --
the function is looking for https:// or git:// URLs, and if it can't find them it fails ... maybe ssh:// is an old format ... ?

Most helpful comment

For people arriving here trying to track down this error message - I fixed by switching the repo's git remote origin from http to https:

$ git remote set-url origin https://github.com/jsta/foo.git

All 4 comments

OK, I fixed this via git remote set-url origin [email protected]:lme4/lme4.git . Might be worth adding the older format to the list of possible cases, if it isn't just something wonky that happens to work for me?

Feel free to close this (I'll leave it open for now)

Yeah, I think ssh is an older format.

For people arriving here trying to track down this error message - I fixed by switching the repo's git remote origin from http to https:

$ git remote set-url origin https://github.com/jsta/foo.git

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bastistician picture bastistician  路  6Comments

Mullefa picture Mullefa  路  6Comments

rz1988 picture rz1988  路  4Comments

pssguy picture pssguy  路  5Comments

sckott picture sckott  路  7Comments