Class material and functions for S&DS 100: Introductory Statistics
All class material is in the ClassMaterial directory. In particular the ClassMaterial/slides directory contains the class slides which can be useful to review what was covered in class.
To install the SDS100 package that contains functions that are useful for the class run the function below
Note: we recommend you cut and paste all these commands to avoid typos.
install.packages("devtools")
devtools::install_github("emeyers/SDS100")
Once you have installed the SDS100 package, you can use this package to
install other packaged required by the class as well as LaTeX using the
SDS100:::initial_setup()
function shown below.
Notes:
- If any dialog boxes pop up, just click “ok” on them to proceed.
- This function might take several minutes to run so please be patient.
- If it asks you to update any existing package you can do so (recommended) or you can skip this.
- When the function is done running, if it asks you to restart R, please close and then reopen R Studio.
SDS100:::initial_setup()
To test that LaTeX has correctly installed on your system you can run the following command:
tinytex:::is_tinytex()
#> [1] TRUE
If the function returns TRUE, then you have successfully installed LaTeX.
If you can't get R/R Studio or the SDS100 package installed on your own computer, you can use the MyApps virtual windows desktop which can be accessed through a web browser at: http://aka.ms/wvdarmweb . The MyApps virual windows desktop already has R and R Studio installed, but you will need to install the SDS100 package on the MyApps.
To install the SDS100 package on MyApps, please following the steps below:
-
Install R Tools by by clicking on this link: https://cran.r-project.org/bin/windows/Rtools/rtools40-x86_64.exe and then clicking on the file that is download to install R Tools.
-
Open up R Studio the MyApps virtual windows desktop and run the following commands in the R console:
install.packages("devtools")
devtools::install_github("emeyers/SDS100")
Once you have done this you should be all good to go. You can test your installation worked by running the following command:
tinytex:::is_tinytex()
#> [1] TRUE
If the function returns TRUE, then you have successfully installed LaTeX and you should hopefuly be all set.