I'm trying to automate my Rmarkdown workflow by creating a package that will contain some helpful functions. I'd like to be able to call a function (say, new_manuscript()) that would create a new project from a private template repository that I have.
Using the gh package, I can easily create a new repository:
gh::gh("POST /user/repos", name = "test", private = "true")
However, there is no argument that can be passed in this API call to specify a template repository. I have found this Github App called createstructure that seems like it may do what I need to do, but the documentation is not entirely clear to me.