############################### # CREAR PAQUETES EN R ############################### VER DOCUMENTO RPACKAGE_INSTRUCTIONS.PDF https://support.rstudio.com/hc/en-us/articles/200486488-Developing-Packages-with-RStudio VER DOCUMENTO PACKAGES.PDF RTOOLS VER EN: Rtools is a extra package necessary to compile a new package in R: Downloand and intall for windows in: https://cran.r-project.org/bin/windows/Rtools/ and see for Mac: https://clanfear.github.io/CSSS508/docs/compiling.html See more in: Mastering Software Development in R Roger D. Peng, Sean Kross, and Brooke Anderson 2020-12-20 https://bookdown.org/rdpeng/RProgDA/before-you-start.html TUTORIAL: chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf #MINI -INSTRUCCIONES --------------------------------------------------------------------- 0-instalar Rtools.exe --> https://cran.r-project.org/bin/windows/Rtools/ 1-SALVAR TODO Y SALIR DE RTOOLS, VOLVER A ENTRAR Y COMPROBAR QUE TODO ESTA VACIO pkgbuild::check_build_tools(debug = TRUE)#comprobar que esta bien instalado Found in Rtools 4.3 installation folder Your system is ready to build packages! 2-CREAR UN DIRECTORIO ESPECIFICO PARA TRABAJAR 3-COMPROBAR EL WORKING DIRECTORY ex:setwd("C:/Users/Antonio Monleon/Downloads/") 4- CREAR UN NUEVO PROYECTO DE TIPO PACKAGE (new directory)--> CREATE PROJECT --> INDICAR NOMBRE (ej paqueteNuevo) 5- VER EN FILES Y EN EL DIRECTORIO QUE SE HA CREADO 6-Crear o depositar funciones en el directorio R 7-Modificar el fichero DESCRIPTION para indicar autores, version, etc 8-RSTUDIO--> MENU BUILD--> CHECK PACKAGE WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding: https://cran.rstudio.com/bin/windows/Rtools/ 9-RSTUDIO --> MENU BUILD--> MORE--> CLEAN AND INSTALL / BUILD SOURCE PCKAGE / BINARY PACKAGE library(paquetetoni) comprobar que la libreria esta instalada en PACKAGES, probar su funcionamiento comprobar que se ha compilado la libreria --- > MANDARLA A CRAN?