diff --git a/08-rpkgs-i/lab.html b/11-rpkgs-i/lab.html similarity index 100% rename from 08-rpkgs-i/lab.html rename to 11-rpkgs-i/lab.html diff --git a/08-rpkgs-i/lab.qmd b/11-rpkgs-i/lab.qmd similarity index 90% rename from 08-rpkgs-i/lab.qmd rename to 11-rpkgs-i/lab.qmd index 7f526d1..d1688fc 100644 --- a/08-rpkgs-i/lab.qmd +++ b/11-rpkgs-i/lab.qmd @@ -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) diff --git a/08-rpkgs-i/slides.html b/11-rpkgs-i/slides.html similarity index 98% rename from 08-rpkgs-i/slides.html rename to 11-rpkgs-i/slides.html index 2598379..95ee633 100644 --- a/08-rpkgs-i/slides.html +++ b/11-rpkgs-i/slides.html @@ -444,6 +444,7 @@ +