then , like thoreau , he went to the woods to live deliberately , to front only the essential facts of life , to see if he could learn what it could teach and not , when he came to die , discover that he had not lived .