I am programming quite frequently in R, but I have never compiled my code into a package. Currently, I have updated old code that was part of an R package designed by a coauthore of mine. I would like now to create an R package with that updated code and also include namespaces to make it comparable with newer R versions. My question is can you recommend software to make the R package? Any introduction to namespaces in R? Lastly, can I do this all on my mac (produce also the windows binary for the package)?