Better strategy for getting recursive dependencies for R pkg