sandbox/vignette_to_demo.R

# Script to extract R code from the vignettes and create a demo file with the
# extracted R code.

library(knitr)

files <- list.files("vignettes/")
vignette_files <- files[grep(pattern=".Rnw", x=files)]

for(file in vignette_files){
  knit(input=paste("vignettes", file, sep="/"), 
       output=paste("demo", gsub(".Rnw", ".R", file), sep="/"), 
       tangle=TRUE)
}

Try the GARPFRM package in your browser

Any scripts or data that you put into this service are public.

GARPFRM documentation built on May 2, 2019, 5:45 p.m.