For attending this workshop you should follow the following guidelines:
In this link you will fine some of the workshop materials.
Create a GitHub account and install the GitHub Desktop
You should have both R and RStudio already installed in your PC.
Please, also install Rtools43 in C:/.
#### Packages installation ####
install.packages("devtools")
install.packages("roxygen2")
install.packages("usethis")
#### New package ####
usethis::create_package("C:/workshop")
#### Create R files ####
usethis::use_r("linReg")
# Run code and edit...
#### NAMESPACE ####
# Rebuild docs and NAMESPACE
devtools::document()
#### Data ####
data <- data.frame(y = c(1:100) + rnorm(100), x = c(1:100) + rnorm(100))
usethis::use_data(data)
#### DESCRIPTION ####
usethis::use_gpl3_license()
usethis::use_package("plotly")
#### Load code ####
devtools::load_all("C:/workshop")
#### Check complete package ####
devtools::check()
#### BUILD ####
devtools::build_manual(path = "C:/test")
devtools::build(path = "C:/test")
#### INSTALLATION ####
installed.packages("C:/test/...")
# GitHub ----
# Download the R package from GitHub
remotes::install_github("...", dependencies = TRUE)