

Data Structure & Algorithm-Self Paced(C++/JAVA).Data Structure & Algorithm Classes (Live).a tests folder where your unit tests live (this is where the and (hopefully) an easy how-to guide that also features more resources at the end (and it also comes with a checklist that I always use when I update our package and before sending it to CRAN).a man folder that contains all manuals for your functions (it will be automatically generated once you created functions and called devtools::document()).

Trust me, this makes debugging (and also maneuvering through your functions) so much easier 🥳) an R folder where multiple R files live that contain your functions (it’s usually a good idea to write one R file per function and to also call the file name as you call your function.a NAMESPACE file that contains information on exported and imported functions.a DESCRIPTION file that gives the user all core information about your package.🕵🏼️ Essential components of an R package Ideally, your R package also comes with unit tests that make sure that your package works (or if it doesn’t throw meaningful errors and let you dive into the functions and explore why it doesn’t) and that it adheres to the common standards of developing a package. Simply speaking, an R package allows you to put functions in a box and make them available for others to use. The R community is great and came up with multiple great helpers that make your life easier! 💡 What’s in an R package? But in its simplest form, it’s not that much more than putting a function in a package structure. Writing a package sounds big - and it can for sure be.
