Change deprecated use of unserialize 

Change deprecated use of unserialize on a character vector to writeLines