Installing R and Rstudio
To run the Forest Foresight package you need R and Rstudio
Installing R:
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 promptsmacOS:
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 instructionsLinux (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.
Go to https://www.rstudio.com/products/rstudio/download/#download
Scroll down to find the installer for your operating system
Download the installer
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:
Open RStudio
In the console pane (usually at the bottom left), you can type R commands
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.