Update functions.qmd (#1080)

"As you write more and more functions you’ll eventually want to convert these informal, interactive tests into formal, automated tests. That process is called unit testing. Unfortunately, it’s beyond the scope of this book, but you can learn about it in http://r-pkgs.had.co.nz/tests.html."
Link gives 404 error for page not found
I updated to https://r-pkgs.org/testing-basics.html
This commit is contained in:
august-18 2022-08-29 03:08:51 -07:00 committed by GitHub
parent d1b63f323f
commit 2110e26f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ rescale01(c(1, 2, 3, NA, 5))
As you write more and more functions you'll eventually want to convert these informal, interactive tests into formal, automated tests.
That process is called unit testing.
Unfortunately, it's beyond the scope of this book, but you can learn about it in <http://r-pkgs.had.co.nz/tests.html>.
Unfortunately, it's beyond the scope of this book, but you can learn about it in <https://r-pkgs.org/testing-basics.html>.
We can simplify the original example now that we have a function: