R/write_list.R

Defines functions write_list

Documented in write_list

#' write_list
#'
#' Convert a list to a text file, for manual observation - will write it to the current directory
#' @param my_list The R list
#' @param file_name What you want to name your text file
#' @export

write_list <- function(my_list,file_name) {

  file <- paste(file_name,'.txt',sep='')

  sink(file)
  print(my_list)
  sink()
}
neugelb/neugelbtools documentation built on July 7, 2020, 1:17 a.m.