I'd like to add a little script that builds my package vignette Rmarkdown into markdown which will be my github
README.md. Basically it's:
knitr::knit("./vignettes/my_vignette.rmd", "testing.md" ) vig_in <- readLines("testing.md") vig_out = vig_in[-(1:11)] writeLines(vig_out, "README.md")
If I want this built EVERY time I build my package is there a simple way to add an R script to the end of a package build process?
The answer to this from SO is basically: "Use a build script from
devtools" Which feels remarkably like "draw the rest of the f'ing owl" because it's not entirely obvious to me what it means to "use a build script" in the context of
devtools. I suspect this is trivial, but I've been unable to grok how to do this.