From 906b93cdcdea3de192cc3890f67e9b0b0ecf78f2 Mon Sep 17 00:00:00 2001 From: Vincent Arel-Bundock Date: Mon, 15 Jan 2024 19:23:27 -0500 Subject: [PATCH] assert_dependency bug + man --- R/sanity.R | 2 +- man/save_tt.Rd | 4 ++-- man/style_tt.Rd | 4 ++-- man/tt.Rd | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/R/sanity.R b/R/sanity.R index 0728f37e..defff3fb 100644 --- a/R/sanity.R +++ b/R/sanity.R @@ -54,7 +54,7 @@ check_dependency <- function(library_name) { } assert_dependency <- function(library_name){ - flag <- isTRUE(check_dependency(library_name)) + flag <- check_dependency(library_name) if (!isTRUE(flag)) stop(flag, call. = FALSE) return(invisible()) } diff --git a/man/save_tt.Rd b/man/save_tt.Rd index ac983928..971d9842 100644 --- a/man/save_tt.Rd +++ b/man/save_tt.Rd @@ -9,7 +9,7 @@ save_tt(x, filename, overwrite = FALSE) \arguments{ \item{x}{The tinytable object to be saved.} -\item{filename}{A string representing the path to the file where the object should be saved.} +\item{filename}{A string representing the path to the file where the object should be saved. The supported file formats are: .html, .png, .md, .pdf, and .tex.} \item{overwrite}{A logical value indicating whether to overwrite an existing file.} } @@ -17,7 +17,7 @@ save_tt(x, filename, overwrite = FALSE) invisible(TRUE) } \description{ -This function saves an object of class tinytable to a specified file, with an option to overwrite existing files. +This function saves an object of class tinytable to a specified file and format, with an option to overwrite existing files. } \examples{ \dontrun{ diff --git a/man/style_tt.Rd b/man/style_tt.Rd index 854a683a..db628dde 100644 --- a/man/style_tt.Rd +++ b/man/style_tt.Rd @@ -95,8 +95,8 @@ When rendering Quarto and Rmarkdown documents, \code{tinytable} will populate th \\usepackage\{codehigh\} \\usepackage[normalem]\{ulem\} \\UseTblrLibrary\{booktabs\} -\newcommand{\tinytableTabularrayUnderline}[1]\{\\underline\{#1\}\}", -\newcommand{\tinytableTabularrayStrikeout}[1]\{\\sout\{#1\}\}", +\newcommand{\tinytableTabularrayUnderline}[1]\{\\underline\{#1\}\} +\newcommand{\tinytableTabularrayStrikeout}[1]\{\\sout\{#1\}\} \\NewTableCommand\{\\tinytableDefineColor\}[3]\{\\definecolor\{#1\}\{#2\}\{#3\}\} }\if{html}{\out{}} } diff --git a/man/tt.Rd b/man/tt.Rd index 4e51fec0..e6b19286 100644 --- a/man/tt.Rd +++ b/man/tt.Rd @@ -52,8 +52,8 @@ When rendering Quarto and Rmarkdown documents, \code{tinytable} will populate th \\usepackage\{codehigh\} \\usepackage[normalem]\{ulem\} \\UseTblrLibrary\{booktabs\} -\newcommand{\tinytableTabularrayUnderline}[1]\{\\underline\{#1\}\}", -\newcommand{\tinytableTabularrayStrikeout}[1]\{\\sout\{#1\}\}", +\newcommand{\tinytableTabularrayUnderline}[1]\{\\underline\{#1\}\} +\newcommand{\tinytableTabularrayStrikeout}[1]\{\\sout\{#1\}\} \\NewTableCommand\{\\tinytableDefineColor\}[3]\{\\definecolor\{#1\}\{#2\}\{#3\}\} }\if{html}{\out{}} }