R package development
In quantitative research, the automation of data processing and the generation of visualizations are central components of the analytical workflow. Within this context, developing reusable functions and organizing them into utility modules is particularly valuable.
This approach enhances efficiency by minimizing repetitive tasks and eliminating the need to repeatedly recreate commonly used routines. It also contributes to clearer, more maintainable, and reproducible code.
A natural extension of this practice is the consolidation of these utilities into a structured package. As the number of functions grows, managing them as isolated scripts becomes increasingly inefficient, whereas packaging provides a scalable and systematic framework for organization and reuse.
Within the R ecosystem, several tools facilitate the development and maintenance of custom packages, simplifying the process of structuring, documenting, and distributing these analytical utilities.
Some times the installation process will return an error associate to the following packages that you will have to update or install:
install.packages("promises")update.packages(ask = FALSE) install.packages("shiny")
install.packages("miniUI")
install.packages("devtools") This is the process that I use with some notes, and I encourage you to fallow or improve and share your recommendations with me:
As a key note base in my experience, be carrefull with the special character en el .Rd file. Because could cause fail error in too many cases.
This blog have a second part focus on the main principles and best practice in documentation.
