Simple multipart parser for R