R/as.one.file.r

as.one.file <- function(files,source=NULL,dest="allthreads.txt",list=c("devel","help")){
  outFiles <- file(dest, "w")
  for (i in files){
   # x <- readLines(paste(list,"/",i,sep=""))
    if (length(source)>0){
      x <- readLines(file.path(source,list,i))
    }
    if (length(source)==0){
      x <- readLines(file.path(list,i))
    }
    writeLines(x,outFiles)
  }
  close(outFiles)
}

Try the snatm package in your browser

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

snatm documentation built on May 2, 2019, 5:01 p.m.