Write an R package in one line.

19 Apr 2017

“This world would be a better place if we invested more in developing cleaner software and smarter algorithms, not writing longer papers.”, - said I after a day of unproductive writing attempts. The concept of clean software includes packaging several routines and functionalities together, making them easy to re-use.

Now, beyond lyrics: I have put together a wrapper-script for myself, which creates an R-package from the raw source code in one line. As proof of concept, I used the code to create a package out of itself. It is called ‘packageR’ and you can also install it from my GitHub repository:

The help page should be displaying information about the create_package function. Use update_package during the development process when you want a change to become effective. Now all is set for happy packaging!

comments powered by Disqus