create() in existing directory #627
Comments
This is what I usually do: Rscript -e 'devtools::create("newpackage")'
cd newpackage
git init .
git add .
git commit -m 'Initial commit, after devtools::create()'
... This seems to be about the same amount of typing. |
No doubt. It just hurts when you try to do it the other way round. Related: #593. |
I think it might be useful, e.g. if you clone an (almost) empty repository to create a package there. For example, when you clone a GitHub repository containing only README.md |
|
Before submitting a PR, I wanted to hear opinions. Personally, I think that tools should adopt to workflows, not the other way round. I'd like to look further into this issue. What would be a good name for the new function? |
New function `setup()` that works like `create()` but assumes an existing, not necessarily empty, directory. Fixes #627.
Desired workflow:
Currently yields:
Suggestion: Creation should silently work when the directory is empty except for a
.git
subdirectory.The text was updated successfully, but these errors were encountered: