Skip to content

Commit

Permalink
Add sentence to intro about use of custom fns in targets
Browse files Browse the repository at this point in the history
  • Loading branch information
joelnitta committed Dec 24, 2024
1 parent 9d37d6d commit 29a3840
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions episodes/functions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Only to then discover that there was an error in the code, and when you fix it,
Through writing functions you can reduce this back and forth, and create a more efficient workflow for yourself.
When you find the bug, you fix it in a single place, the function you made, and each subsequent call of that function will now be fixed.

Furthermore, `targets` makes extensive use of custom functions, so a basic understanding of how they work is very important to successfully using it.

### Writing a function

There is not much difference between writing your own function and writing other code in R, you are still coding with R!
Expand Down

0 comments on commit 29a3840

Please sign in to comment.