R/writeListToFile.R

writeListsToFile <- function(lis, fn){
  
  
  txt <- list()
  nml <- names(lis)
  for(i in 1:length(lis)){
    
    txt[[i]] <- formatNameList(nml[i], lis[[i]])
    txt[[i]] <- c(txt[[i]], "")
  }
  txt <- unlist(txt)
  
  writeLines(txt, fn)
}

Try the Maeswrap package in your browser

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

Maeswrap documentation built on May 2, 2019, 7:58 a.m.