Results 2 comments of Tiago Dantas

Thanks for sharing! It's definitely better to do it as Hadley described. I'll rewrite the package but this might take a while.