r-lib / remotes

Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs
https://remotes.r-lib.org/
Other
331 stars 152 forks source link

Error: devtools::install_github #701

Closed DarianFlorianVoda closed 2 years ago

DarianFlorianVoda commented 2 years ago

Hello! I am trying to put a package to GitHub, but is giving me this error:

devtools::install_github("DarianFlorianVoda/Diagram-Generator")
Error: Failed to install 'unknown package' from GitHub:
  HTTP error 404.
  Not Found

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

Any help would be useful 😄

gaborcsardi commented 2 years ago

Need to mention that my package is private

It can't because there is no way to know that.

I also put it public and still doesn't work

I do not see any package at https://github.com/DarianFlorianVoda/Diagram-Generator so that is surely not public.

DarianFlorianVoda commented 2 years ago

Need to mention that my package is private

It can't because there is no way to know that.

I also put it public and still doesn't work

I do not see any package at https://github.com/DarianFlorianVoda/Diagram-Generator so that is surely not public.

I wanted to mention that I tried it also that method of putting it public 😄 Sorry for misconception. If you want I can put it public if there is a need.

gaborcsardi commented 2 years ago

Well, a lot of people use devtools::install_github() so I am pretty sure that it works in general. It may certainly have bugs, but to fix them we should be able to reproduce them. So please try to give me something reproducible.

DarianFlorianVoda commented 2 years ago

I found a workaround by pushing it manually to my main repository, since the R files were created, but I needed only to install the package with devtools, thanks!