Skip to content

UBC-STAT/stat-406-rpackage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e854f4a · Jun 13, 2024

History

43 Commits
Aug 11, 2023
Sep 12, 2023
Aug 27, 2023
Aug 27, 2023
Aug 27, 2023
Aug 27, 2023
Aug 29, 2022
Oct 9, 2023
Aug 29, 2022
Aug 29, 2022
Aug 24, 2023
Aug 27, 2023
Jun 13, 2024
Aug 29, 2022
Aug 11, 2023

Repository files navigation

Stat406

R-CMD-check

The goal of Stat406 is to allow students enrolled in the course to install all necessary packages at once. It also provides data and documentation for all Homework Assignments and Labs for easy loading, along with a few helper functions to verify system setup.

Installation

You can install the development version of Stat406 from GitHub with:

# install.packages("remotes")
remotes::install_github("UBC-STAT/stat-406-rpackage", dependencies = TRUE)

Usage

After installation, the package will be available in R under the name Stat406. You can load it into R using:

library(Stat406)

Start up

Once you have installed the package, you should run

test_latex_installation()

This will attempt to compile a small LaTeX document (in preparation for homework and labs). If it works, you’ll see something like:

#> ℹ Attempting to compile a LaTeX document.
#> ✔ Attempting to compile a LaTeX document. ... done
#> 
#> ✔ LaTeX is available. You're good to go.

If it fails, you’ll see:

#> ✖ LaTeX does not appear to be installed. But, it may have installed automatically
#> 
#> ── Next steps. ─────────────────────────────────────────────────────────────────
#> ℹ Try running this function again.
#> ℹ If you still see this message, run `tinytex::install_tinytex()`.

Ideally, LaTeX automatically installed itself. Try the function again. You may need to restart R. You may need to restart your machine. If it still doesn’t work, follow the instructions.

If you still get errors, then contact the teaching team on Slack or in Office Hours.