Transform raw analysis into R markdown report