Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upProvide pinp.cls if not present #23
Comments
|
Yeah, I was actually toying around with this in: illinois-r/uiucthemes#4 Basically, the |
|
It is trivial, and I will commit it: if (!file.exists("pinp.cls"))
file.copy(system.file("rmarkdown", "templates", "pdf", "skeleton", "pinp.cls",
package="pinp"),
".")Has the advantage of copyinig a current |
I am a little non-plus'ed that adding pinp as the vignette driver leads to two extra files.
I already figured out how to get rid of one---we can just include the content of the Bibtex-rendered .blg file directly in the source Rmd, which frees us from adding a
foo.bibfile. Down one. (Of course, you want it while you still edit the document. Once done, and included as a more static vignette you do not and the extra file is line noise.)And I realized that we have a code hook to just copy in
pinp.clsfrom the pinp skeleton directory if it is not present in the current working directory---and tada we also get rid ofpinp.cls.Good idea? Methinks it is.