https://github.com/cran/quantreg
Raw File
Tip revision: e155e99c536764b871763912d327e93a4a912a23 authored by Roger Koenker on 18 April 2017, 05:41 UTC
version 5.33
Tip revision: e155e99
run-demos.R
library(quantreg)

(dDIR <- system.file("demo", package = "quantreg"))
setwd(dDIR)
set.seed(1) # since some demos randomly generate

cat("Running demos from package 'quantreg' : \n\n")
for(ff in list.files(dDIR, pattern="\\.R$", full.names = TRUE)) {
   f <- basename(ff)
   cat("\n", f," :\n", paste(rep.int("-", nchar(f)), collapse=''),
       "\n", sep='')

   source(ff, echo = TRUE)
}

back to top