What is the canonical procedure for starting a new package that you want to put on GitHub (etc)?
When I start a New Project, I have the option to either check out a directory from version control or to create a package. Currently, my procedure is to create a new repository on GitHub, then start a new project by checking out that repository, then doing a dance using devtools::create()
/ package.skeleton
etc, deleting files, and restarting RStudio, until the version control is synced and RStudio recognizes that this is a package project. Or I clone the repository outside of RStudio and then start the project in that directory.
This dance only happens when I want to start a package, so the overhead is no big deal. (Though in a class it's noticeable.) But I wonder if there's a better way to combine these apparently mutually exclusive ways to start a project. I understand it would be a pain to develop an option to create a new repository, clone it, and start a new package all in one step, because starting a package afresh allows you to safely make a lot of assumptions about the directory contents.