Skip to content

Commit

Permalink
docs(sessions): πŸ“ add learning objectives for documenting functions (#26
Browse files Browse the repository at this point in the history
)

Co-authored-by: Luke W. Johnston <[email protected]>
  • Loading branch information
AndersAskeland and lwjohnst86 authored Aug 7, 2024
1 parent f9cc53e commit 377e675
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions sessions/documenting-functions.qmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TODO: Lesson title here
# Documenting functions in your package {#sec-documenting-functions}

{{< include ../includes/_wip.qmd >}}

Expand All @@ -8,10 +8,25 @@

<!-- TODO: Add an introduction here -->

**Session objectives**:
## Learning objectives

- Describe the purpose of documenting code and packages
- Document functions with `{roxygen2}`
The overall **learning outcome** for this session is:

- Explain why high-quality, well-written function documentation is
important when creating a package intended to be used by others.

Specific **objectives** are:

- Describe the purpose of function-specific documentation and identify
core components to include in the documentation.
- Use `{roxygen2}` to setup a template documentation structure and
then write Markdown-based documentation within that template for
functions.
- Use the examples section of the documentation to help prototype and
informally check that the function works. Then later write more
example code that highlights how to use the function.
- Use `{devtools}` to automatically generate package documentation
that can be accessible when using `?function_name`.

## Documenting Functions

Expand Down

0 comments on commit 377e675

Please sign in to comment.