parse_file function

Parse the input Rd file to a list