To Do Before Next Week
1. Complete Activities 1 and 2
2. Install Microsoft Excel (if you dont have already installed)
3. Install R and R studio
Follow the instructions below or see this helpful video here.
For Windows
- Install R:
- Visit the Comprehensive R Archive Network (CRAN) at cran.r-project.org.
- Click on “Download R for Windows” and then select the “base” distribution.
- Download the installer and run it. Follow the installation wizard, choosing your preferred settings, such as installation location and whether to include a Start Menu shortcut[1][2][5].
- Install RStudio:
- Go to the RStudio website at rstudio.com.
- Click on “Download RStudio Desktop” and select the installer for Windows.
- Run the downloaded installer and follow the installation instructions. RStudio should automatically detect the installed version of R[1][2][5].
- Verify Installation:
- Open RStudio. It should automatically configure itself to use the installed R version.
- You can test the setup by running a simple R command in the RStudio console, such as
print('Hello, World!')
[3][4].
For macOS
- Install R:
- Go to cran.r-project.org and click on “Download R for macOS.”
- Download the appropriate package for your macOS version and run the installer[5].
- Install RStudio:
- Visit rstudio.com and download the RStudio Desktop installer for macOS.
- Open the installer and follow the on-screen instructions to complete the installation[5].
- Verify Installation:
- Launch RStudio and ensure it recognizes the installed R version.
- Test the installation by executing a simple command in the console[5].
For Linux (Ubuntu)
- Install R:
- Open the terminal and update the package list with
sudo apt-get update
. - Install R using
sudo apt -y install r-base
. - Verify the installation with
R --version
[3].
- Open the terminal and update the package list with
- Install RStudio:
- Download the RStudio
.deb
package from the RStudio website. - Install the package using
sudo gdebi rstudio-x.x.x-amd64.deb
(replacex.x.x
with the version number). - Alternatively, use the Ubuntu Software Center to install RStudio[3].
- Download the RStudio
- Verify Installation:
- Open RStudio from the terminal or applications menu.
- Run a simple test command in the console to ensure everything is working correctly[3].
Citations: [1] https://tu-dresden.de/bu/umwelt/forst/ww/waldwachstum/ressourcen/dateien/Handout-installing-R-and-RStudio.pdf?lang=en [2] https://teacherscollege.screenstepslive.com/a/1108074-install-r-and-rstudio-for-windows [3] https://www.geeksforgeeks.org/how-to-install-r-studio-on-windows-and-linux/ [4] https://www.youtube.com/watch?v=H9EBlFDGG4k [5] https://rstudio-education.github.io/hopr/starting.html