/
Installing R and Rstudio

Installing R and Rstudio

To run the Forest Foresight package you need R and Rstudio. If you have a small computer please don’t forget to look at the Hardware Requirements

Installing R:

  1. Windows:
    a. Go to https://cran.r-project.org/
    b. Click on "Download R for Windows"
    c. Click on "base"
    d. Click on the download link for the latest version of R
    e. Once downloaded, run the installer and follow the prompts

  2. macOS:
    a. Go to https://cran.r-project.org/
    b. Click on "Download R for macOS"
    c. Click on the .pkg file appropriate for your macOS version
    d. Once downloaded, open the .pkg file and follow the installation instructions

  3. Linux (Ubuntu/Debian):
    a. Open a terminal
    b. Run the following commands:

    sudo apt update sudo apt install r-base

Installing RStudio:

RStudio is an integrated development environment (IDE) for R. It's available for Windows, macOS, and Linux.

  1. Go to https://www.rstudio.com/products/rstudio/download/#download

  2. Scroll down to find the installer for your operating system

  3. Download the installer

  4. Run the installer and follow the prompts

For all operating systems:

  • Once the download is complete, run the installer

  • Follow the installation wizard, accepting the default options unless you have specific preferences

After installation:

  1. Open RStudio

  2. In the console pane (usually at the bottom left), you can type R commands

  3. To confirm everything is working, try typing:

    print("Hello, World!")

    If you see "Hello, World!" printed in the console, your installation is successful.

Remember, you need to install R before installing RStudio, as RStudio is an IDE that runs on top of R.

Related content

Downloading Forest Foresight data
Downloading Forest Foresight data
More like this
Dashboard Manual
Dashboard Manual
Read with this
Installing the Forest Foresight package
Installing the Forest Foresight package
More like this
Open-Source Contribution
Open-Source Contribution
More like this
Training Material
Training Material
More like this
Preprocessing your own datasets
Preprocessing your own datasets
More like this