-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
64 lines (53 loc) · 2.04 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# Stat406
<!-- badges: start -->
[](https://github.com/UBC-STAT/stat-406-rpackage/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
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](https://github.com/) with:
```{r, echo=TRUE, eval=FALSE}
# install.packages("remotes")
remotes::install_github("UBC-STAT/stat-406-rpackage", dependencies = TRUE)
```
## Start up
Once you have installed the package, you should run
```{r, echo=TRUE, eval=FALSE}
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:
```{r, echo=FALSE}
cli::cli_process_start("Attempting to compile a LaTeX document.")
cli::cli_process_done()
cli::cli_alert_success("LaTeX is available. You're good to go.")
```
If it fails, you'll see:
```{r, echo=FALSE}
cli::cli_process_failed()
cli::cli_alert_danger(
"LaTeX does not appear to be installed. But, it may have installed automatically"
)
cli::cli_h1("Next steps.")
cli::cli_alert_info("Try running this function again.")
cli::cli_alert_info("If you still see this message, run {.fn 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.