Skip to content

Commit

Permalink
Redoing week of R packages (#37)
Browse files Browse the repository at this point in the history
* Updating slides

* Updating R packages slides
  • Loading branch information
gvegayon authored Nov 12, 2024
1 parent dbf8d32 commit f07d949
Show file tree
Hide file tree
Showing 5 changed files with 857 additions and 437 deletions.
File renamed without changes.
5 changes: 2 additions & 3 deletions 08-rpkgs-i/lab.qmd → 11-rpkgs-i/lab.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,12 @@ The function should be named `ps_match`:
it using `roxygen`. Once you finish that, ensure it compiles and the function
is visible.[^reminder] (then commit and push)

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

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

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

```r
set.seed(1231)
Expand Down
941 changes: 673 additions & 268 deletions 08-rpkgs-i/slides.html → 11-rpkgs-i/slides.html

Large diffs are not rendered by default.

Loading

0 comments on commit f07d949

Please sign in to comment.