Skip to content

Commit

Permalink
Document moodlequiz_xml
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Jan 16, 2025
1 parent d4812f1 commit 3a1572b
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
26 changes: 26 additions & 0 deletions R/quiz-xml.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,32 @@ moodlequiz <- function(replicates = 1L,
)
}

#' Generate Moodle Quiz XML Output for R Markdown
#'
#' This function is intended for internal generation of the XML output.
#' It is strongly recommended that you use the `[moodlequiz::moodlequiz()]`
#' output format, which provides a higher-level interface for creating
#' Moodle-compatible quizzes.
#'
#' @param replicate A character string specifying the how many replications of the quiz should be produced.
#' @param self_contained Logical. If `TRUE`, the output document will be self-contained,
#' embedding resources directly into the file. Defaults to `TRUE`.
#' @param extra_dependencies Additional dependencies to include in the output. These can be
#' specified as an `html_dependency` object or a list of such objects.
#' @param theme A character string specifying the theme for the output. This can be a standard
#' theme name or a custom CSS file.
#' @param includes Additional content to include in the output. This should be a list of
#' named elements, such as `in_header`, `before_body`, and `after_body`.
#' @param lib_dir Directory to copy library files for the output. If `NULL`, no library files
#' are copied.
#' @param md_extensions A character string specifying Markdown extensions to be passed to Pandoc.
#' @param pandoc_args Additional arguments to pass to Pandoc.
#' @param ... Additional arguments passed to [`bookdown::html_document2()`]
#'
#' @return An R Markdown output format object.
#'
#' @seealso [moodlequiz::moodlequiz()]
#'
#' @keywords internal
#' @export
moodlequiz_xml <- function(replicate = "",
Expand Down
55 changes: 55 additions & 0 deletions man/moodlequiz_xml.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3a1572b

Please sign in to comment.