In this workshop we will be using R and R studio:
We need to have both installed in our local computer to be able to go trough this workshop.
When we start R studio, we can see 4 sections:
One of the most useful features of R studio is the project organization, if you haven, I strongly encourage you to familiarize with creating and using projects to organize your workflow. Projects allow to create a file that will contain all the information regarding your session (including objects, data sets and configurations) and organize your files in folders in your system. This is particularly useful when we are working with multiple topics.
When you open Rstudio for the first time it starts on an empty project. To create a new project, just go to the top right corner menu and select New Project…
Then will five you the option to create a new project in a new directory, un an existing directory or version control. For today, we wont be talking about version control in detail, but this is to integrate Rstudio with Github.
Once you have selected the option that you want, it will show you multimple options for types of projects, you can select New project and continue.
Then you just name your directory and select a location.
Once the project is created, in the files tab you will see that Rstudio created the files for your project in the folder that you selected. The project organization depends on your personal preferences, but I usuallly like to create 3 folders (code, data and docs) to organice my files related with the current project.
Shiny is the platform we will be using for the development of our interactive dashboards. Shiny is an R library, which means it runs from R. If you haven’t, you can install the library running install.package(shiny)
directly form the R console. We can develop and run our applications locally, but if we want to share it, we can also uploaded to a server and make it accessible via a website that can be accessed in any device with internet connection. In this workshop we will eventually do this, so we will need a shinyapps account, which is free. We will configure our shiny account with Rstudio next: