I am building my first R-package, and I am now in the process of trying to connect this package to a GitHub repo.
I have no experience with R-package development, git, or GitHub prior to this.
I have followed the excellent happygit guide by Jenny Bryan (https://happygitwithr.com/new-github-first.html), and have been successful with running the examples, and I can connect my test projects in Rstudio to my test repos on Github.
Here is where I am stuck (on the second day now... please help me...)
Chapter 15 ("New Project GitHub First") and Chapter 16 ("Existing Project GitHub Last"), both use projects that are initiated by:
File > New Project > Version Control > Git . In the “repository URL” paste the URL of your new GitHub
As I understand it, this creates a Version Control Project and not a package. Therefore, all options in the Rstudio build tab (e.g., "Clean and Build") are gone, and only "Configure Build Tools" remains. This means that while I can push/pull to the Repo, I can't work on the package.
I have tried to get around this by:
-
Manually copying all files from a working "Package Project" into the Version Control Project, but this didn't work. Rstudio still appears to "think" of the project as a version control project.
-
Setting all the options in the "Configure Build Tools" pane of my "Version Control Project" to be identical to the "Configure Build Tools" pane in my "Package Project," but the package build options are still missing.
I realize that there is likely no easy solution or answer to this, but I hope that I, in spite of my effort, have missed something obvious, or that you can point me to a guide that can walk me through this setup.
Many thanks in advance,