Photo by Steinar Engeland on Unsplash
By Ivan Navarro, Data Scientist at Cytel
R is an open-source implementation of ‘S’, the statistical programming language. With its open character and ability to extend its functionality using external packages, R allows users to create their own packages that are easily loadable into the core instance.
In essence, R-packages are extensions that contain source-code, documentation, data and examples of personal contributions and can be extremely useful for data scientists, statisticians and programmers alike who need to create custom analysis and visualizations. However, creating your first R-package can be a complex task for non-experienced users.
In this blog, I explain how to create a basic R-package which can be used as template for anyone interested in making a contribution. A previous knowledge on R programming is required, but you will not need to deal with technical aspects of the creation process because the R-Package structure is shared at the end.