init r code for analyzing packages