-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use_github for a non-package project fails #2096
Comments
The error reported is this:
And that repo does indeed already exist on GitHub: So that is the problem. |
Agreed that there is a repo by that name on GitHub and locally, but the directory name for this project is not BAS, nor is this in the BAS subdirectory, (I expected the new repo to be called the current directory). The current directory does not correspond to a Github repo, so it is not clear to me how my BAS repo was selected in the code as I have other repos (both packages and websites). What is weird is that this seems to only occur in arbitrary directories that are stored on iCloud (when The issue seems to be in the
In anywise a weird interaction! |
I created a new project (via R-studio) and initiated it as a git repo use
usethis::use_git()
, followed byusethis::use_github
which failed with the following error
The issue seems to arise in the call to
usethis:::project_name() which thinks that the project is a package (returns TRUE) and ultimately calls
desc::desc()```If this is also intended for non-package projects, I would expect project name to return the directory name, rather than another
package...
The text was updated successfully, but these errors were encountered: