Skip to content

Commit f07d949

Browse files
authored
Redoing week of R packages (#37)
* Updating slides * Updating R packages slides
1 parent dbf8d32 commit f07d949

File tree

5 files changed

+857
-437
lines changed

5 files changed

+857
-437
lines changed
File renamed without changes.

08-rpkgs-i/lab.qmd renamed to 11-rpkgs-i/lab.qmd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ The function should be named `ps_match`:
5151
it using `roxygen`. Once you finish that, ensure it compiles and the function
5252
is visible.[^reminder] (then commit and push)
5353

54-
[^reminder]: Remember to run `roxygen2::roxygenise()` or Ctr + Shift + D, if using RStudio.
54+
[^reminder]: Remember to run `roxygen2::roxygenise()`, `devtools::document()`, or Ctr + Shift + D, if using RStudio.
5555

5656
2. Write an example with artificial data passing a random vector with ten elements
5757
distributed U[0, 1]. Add the example to the documentation using the `@examples` tag. (then commit and push)
5858

59-
3. Write a test using the `tinytest`. The C++ function should match the results of
60-
the equivalent R function:
59+
3. Write a test using the `testthat` R package. The C++ function should match the results of the equivalent R function:
6160

6261
```r
6362
set.seed(1231)

08-rpkgs-i/slides.html renamed to 11-rpkgs-i/slides.html

Lines changed: 673 additions & 268 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)