R: Writing list with elements of different classed into a text file : How to write a list of different class variables into a text file consequently using R base functions?

 `write` and `cat` can't handle data.frames and `write.table` is specific to tables only. None of them handles lists properly.
Sample list:
   
    > test
	[[1]]
	[1] "a" "b" "c"

	[[2]]
	[1] "d" "e" "f"

	[[3]]
	[1] 1 2 3

	[[4]]
	  X.g. X.h. X.i.
	1    g    h    i

	[[5]]
	[[5]][[1]]
	[1] "k"

	[[5]][[2]]
	[1] "l"

	[[5]][[3]]
	[1] "m" "n"


	[[6]]
	[1] "2015-03-23 11:15:00 CET"

It consists of character, numeric, POSIXlt time variable and another list.

Desired result - a text file like that:

	a b c
	d e f
	1 2 3
	X.g.	X.h.	X.i.
	1	g	h	i
	k
	l
	m n
	2015-03-23 11:15:00
