Skip to content
This repository was archived by the owner on Sep 24, 2026. It is now read-only.

Latest commit

 

History

History
60 lines (51 loc) · 2.1 KB

courseNotes.md

File metadata and controls

60 lines (51 loc) · 2.1 KB

Data Science ToolBox Course Notes

Week 2

Git and Github

Comandos usados para el curso:

configuración

git config --global user.name "Nombre"          #Configurar nombre
git config --global user.email "corre@dom.com"  #Configurar email
git list                                        #Lista la configuración

Comandos varios

git clone                  # Clonar repo hacia local
git init                   # Indicar que el directorio local se registre en git
git remote add origin https://....git

Agregar, comitear y push y pull

git add .                              # Agregar archivos creados
git add -u                             # Agregar los modificados
git add -A                             # Agregar los dos casos anteriores
git remote add origin https://....git  # Agregar origen remoto
git commit -m "Mensaje del commit"     # Comit a los locales hacia git
git push                               # Comit a github
git checkout branch                    # Cambiar hacia un branch

Secuencias para sincronizar

git checkout week2
git pull origin master
git push origin week2
git checkout master
git pull origin week2 

R Packaging

Comandos basicos para manejar paquetes desde R. Estas funciones pueden realizarse desde rstudio tambien.

install.packages( pkgs= "" )             # Instalar un paquete
update.packages("")                        # Actualizar
install.packages( pkgs= c("","dos") )    # Instalar un paquete
library("")                                # Cargar un paquete
require("")                                # Requerir un paquete

Como obtener ayuda

help.start()  #Loads an HTML help page in the browser
help(  )  #Provides documentation for the requested package or function
?  #Provides documentation for the requested package or function
help.search( "" )   #Searches help documents for the 
??    #Searches help documents for the