Skip to content

Commit

Permalink
edit examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestguevarra committed Jan 27, 2025
1 parent a82c766 commit e73f031
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
17 changes: 13 additions & 4 deletions R/08-report.R
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,9 @@ report_op_misc <- function(output_format = c("html", "docx", "odt", "pdf")) {
#'
#' resultsDF <- merge_op(x = classicResults, y = probitResults)
#'
#' if (rmarkdown::pandoc_available("1.12.3")) {
#' library(rmarkdown)
#'
#' if (pandoc_available("1.12.3")) {
#' report_op_html(
#' svy = testSVY, estimates = resultsDF, indicators = "mental",
#' filename = paste(tempdir(), "report", sep = "/")
Expand Down Expand Up @@ -901,7 +903,9 @@ report_op_html <- function(estimates,
#'
#' resultsDF <- merge_op(x = classicResults, y = probitResults)
#'
#' if (rmarkdown::pandoc_version() >= numeric_version("1.12.3")) {
#' library(rmarkdown)
#'
#' if (pandoc_version() >= numeric_version("1.12.3")) {
#' report_op_docx(
#' svy = testSVY, estimates = resultsDF, indicators = "mental",
#' filename = paste(tempdir(), "report", sep = "/")
Expand Down Expand Up @@ -1017,7 +1021,9 @@ report_op_docx <- function(estimates,
#'
#' resultsDF <- merge_op(x = classicResults, y = probitResults)
#'
#' if (rmarkdown::pandoc_version() >= numeric_version("1.12.3")) {
#' library(rmarkdown)
#'
#' if (pandoc_version() >= numeric_version("1.12.3")) {
#' report_op_odt(
#' svy = testSVY, estimates = resultsDF, indicators = "mental",
#' filename = paste(tempdir(), "report", sep = "/")
Expand Down Expand Up @@ -1130,8 +1136,11 @@ report_op_odt <- function(estimates,
#'
#' resultsDF <- merge_op(x = classicResults, y = probitResults)
#'
#' library(rmarkdown)
#' library(tinytex)
#'
#' \donttest{
#' if (rmarkdown::pandoc_version() >= numeric_version("1.12.3")) {
#' if (pandoc_version() >= numeric_version("1.12.3")) {
#' report_op_pdf(
#' svy = testSVY, estimates = resultsDF, indicators = "mental",
#' filename = paste(tempdir(), "report", sep = "/")
Expand Down
4 changes: 3 additions & 1 deletion man/report_op_docx.Rd

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

4 changes: 3 additions & 1 deletion man/report_op_html.Rd

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

4 changes: 3 additions & 1 deletion man/report_op_odt.Rd

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

5 changes: 4 additions & 1 deletion man/report_op_pdf.Rd

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

0 comments on commit e73f031

Please sign in to comment.