Chapter 1 Introduction

1.1 Install R/RStudio

You should not install R/RStudio at any path that has non-English characters.

Windows user should avoid OneDrive as well.

You can input this to check:

R.home()
  • It shows where R is installed. If there is OneDrive or any ? shows up in the path, then it is not properly installed.

Install R:

Install RStudio Desktop:

1.2 Install packages

install.packages(
  c("remotes","purrr","glue", "xfun", "stringr","lubridate","dplyr", "rlang", "assertthat"),
  dependencies = T
)
remotes::install_github("tpemartin/econR2")