R/blocks.R

Defines functions format.roxy_tag_challenge format.roxy_tag_testimonial format.roxy_tag_solution format.roxy_tag_prereq format.roxy_tag_objectives format.roxy_tag_keypoints format.roxy_tag_discussion format.roxy_tag_checklist format.roxy_tag_challenge format.roxy_tag_callout format.roxy_tag_questions roxy_tag_parse.roxy_tag_solution roxy_tag_parse.roxy_tag_challenge roxy_tag_parse.roxy_tag_testimonial roxy_tag_parse.roxy_tag_solution roxy_tag_parse.roxy_tag_prereq roxy_tag_parse.roxy_tag_objectives roxy_tag_parse.roxy_tag_keypoints roxy_tag_parse.roxy_tag_discussion roxy_tag_parse.roxy_tag_checklist roxy_tag_parse.roxy_tag_challenge roxy_tag_parse.roxy_tag_callout roxy_tag_parse.roxy_tag_solution roxy_tag_parse.roxy_tag_questions roxy_tag_parse.roxy_tag_end

Documented in roxy_tag_parse.roxy_tag_callout roxy_tag_parse.roxy_tag_challenge roxy_tag_parse.roxy_tag_checklist roxy_tag_parse.roxy_tag_discussion roxy_tag_parse.roxy_tag_end roxy_tag_parse.roxy_tag_keypoints roxy_tag_parse.roxy_tag_objectives roxy_tag_parse.roxy_tag_prereq roxy_tag_parse.roxy_tag_questions roxy_tag_parse.roxy_tag_solution roxy_tag_parse.roxy_tag_testimonial

#' @title Roxygen tags for dovetail
#' @rdname roxy_tag_parse
#'
#' @param x a tag
#' @return somethng
#' @export
#' @importFrom roxygen2 roxy_tag_parse
#' @examples
#' soln <- system.file("inst", "extdata", "example-solution-only.R",
#'   package = "dovetail"
#' )
#' roxygen2::parse_file(soln, env = NULL)
roxy_tag_parse.roxy_tag_end <- function(x) {
  # The end tag really doesn't need to do anything... it's just a marker
  x$val <- ""
  x
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_questions <- function(x) {
  tag_section(x)
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_solution <- function(x) {
  tag_section(x)
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_callout <- function(x) {
  tag_section(x)
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_challenge <- function(x) {
  tag_section(x)
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_checklist <- function(x) {
  tag_section(x)
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_discussion <- function(x) {
  tag_section(x)
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_keypoints <- function(x) {
  tag_section(x)
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_objectives <- function(x) {
  tag_section(x)
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_prereq <- function(x) {
  tag_section(x)
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_solution <- function(x) {
  tag_section(x)
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_testimonial <- function(x) {
  tag_section(x)
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_challenge <- function(x) {
  tag_section(x)
}
#' @export
#' @rdname roxy_tag_parse
roxy_tag_parse.roxy_tag_solution <- function(x) {
  tag_section(x)
}

#' @export
format.roxy_tag_questions <- function(x, ...) {
  rxyfmt(x)
}

#' @export
format.roxy_tag_callout <- function(x, ...) {
  rxyfmt(x)
}
#' @export
format.roxy_tag_challenge <- function(x, ...) {
  rxyfmt(x)
}
#' @export
format.roxy_tag_checklist <- function(x, ...) {
  rxyfmt(x)
}
#' @export
format.roxy_tag_discussion <- function(x, ...) {
  rxyfmt(x)
}
#' @export
format.roxy_tag_keypoints <- function(x, ...) {
  rxyfmt(x)
}
#' @export
format.roxy_tag_objectives <- function(x, ...) {
  rxyfmt(x)
}
#' @export
format.roxy_tag_prereq <- function(x, ...) {
  rxyfmt(x)
}
#' @export
format.roxy_tag_solution <- function(x, ...) {
  rxyfmt(x)
}
#' @export
format.roxy_tag_testimonial <- function(x, ...) {
  rxyfmt(x)
}
#' @export
format.roxy_tag_challenge <- function(x, ...) {
  rxyfmt(x)
}
carpentries/dovetail documentation built on Sept. 23, 2021, 9:35 p.m.