Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redoing week of R packages #37

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading