Welcome Note

This book highlight some basic steps one need to know to start building R packages (R Core Team 2020). It also describe techniques for writing good code for data science.

The main author of this book, Masumbuko Semba semba-blog.netlify.com developed this version of the book while doing his doctoral study at the Institute of Marine Sciences of the University of Dar es Salaam, Zanzibar. His prime aim was to help scientist in marine and freshwater systems have a glimpse of visualizing and exploring data in modern ways like using web apps. Several other contributors were instrumental in the development of materials in this book. Some of contributors include Ismael Kimirei, Yohanna Shaghude, Nyamisi Peter, Baraka Kuguru, Ntahondo Nyandwi, Patroba Matiku, Mathew Silas

Colophon

This book was written in bookdown(Xie 2020) inside RStudio. The website semba-blog is hosted with Netlify, and automatically updated after every commit by Travis-CI. The complete source is available from GitHub.

The logo and the book style was designed by Masumbuko Semba.

License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

This is a human-readable summary of (and not a substitute for) the license. Please see https://creativecommons.org/licenses/by-sa/4.0/legalcode for the full legal text.

You are free to:

  • Share—copy and redistribute the material in any medium or format

  • Remix—remix, transform, and build upon the material for any purpose, even commercially.

The licensor cannot revoke these freedoms as long as you follow the license terms.

Under the following terms:

  • Attribution—You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

  • ShareAlike—If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.

  • No additional restrictions—You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.

Notices:

You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.

No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.

Citation

For attribution, please cite this work as;

Semba M., Peter N. and I. Kimirei (2020). Developing packages in R. Retrieve from "https://lugoga.github.io/r-package/"

And the BibTex format is;

@misc{semba2020,
    author = {Masumbuko Semba and Nyamisi Peter and Ismael Kimirei},
    title = {Developing packages in R},
    ur = {https://lugoga.github.io/r-package/},
    year = {2020}
}

References

R Core Team. 2020. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing. https://www.R-project.org/.

Xie, Yihui. 2020. Bookdown: Authoring Books and Technical Documents with R Markdown. https://github.com/rstudio/bookdown.