Technical requirements
We will use renv to manage packages in a project-specific way. To use renv to install packages, you will first need to install the renv package. You can do this by running the following commands in your R console:
- Install
renv:install.packages("renv") - Create a new
renvenvironment:renv::init()
This will create a new directory called
.renvin your current project directory. - You can then install packages with the following:
renv::install_packages()
For this chapter, we’ll need the following packages:
- Regular packages:
ggplot2tidyr
Further information
Not all the recipes in this section happen in R; in fact, most happen in the chat window of ChatGPT. Make an account for this at https://chat.openai.com/. I’ll include results from ChatGPT inline in the recipe steps.