like this, the list is below,  I want to remove the last one .  not using
newlist[-2], but using the function detect its component is numeric(0) and
then remove it from the list.

newlist

[[1]]
[1] 2 3

[[2]]
[1] numeric(0)

[[3]]
[1] 7

	[[alternative HTML version deleted]]

