Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Jun 26, 2024
1 parent 08fe0f8 commit 6c12978
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 34 deletions.
32 changes: 14 additions & 18 deletions R/search-vars.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#'
#' @param file File path in which to search for variables.
#'
#' @return A \code{data.frame} with 2 columns: \code{"variable"} and \code{"value"}.
#' @return A `data.frame` with 2 columns: `"variable"` and `"value"`.
#' @export
#'
#' @importFrom tools file_ext
Expand Down Expand Up @@ -66,12 +66,11 @@ search_vars <- function(file) {
#' @param pattern A pattern to filter the results.
#' @param source Search variables in AdminLTE or Bootstrap or both.
#'
#' @return a \code{data.frame} with three variables:
#' \itemize{
#' \item{\code{source}: }{AdminLTE or Bootstrap variable.}
#' \item{\code{variable}: }{name of the variable.}
#' \item{\code{value}: }{default value used.}
#' }
#' @return a `data.frame` with three columns:
#' * `source` : AdminLTE or Bootstrap variable.
#' * `variable` : name of the variable.
#' * `value` default value used.
#'
#' @export
#'
#' @examples
Expand Down Expand Up @@ -112,11 +111,9 @@ search_vars_bs4dash <- function(pattern = NULL, source = c("adminlte", "bootstra
#' @param pattern A pattern to filter the results.
#' @param theme Name of the theme for which to search the variables.
#'
#' @return a \code{data.frame} with two variables:
#' \itemize{
#' \item{\code{variable}: }{name of the variable.}
#' \item{\code{value}: }{default value used in theme.}
#' }
#' @return a `data.frame` with two columns:
#' * `variable` : name of the variable.
#' * `value` default value used.
#'
#' @export
#'
Expand Down Expand Up @@ -152,15 +149,14 @@ search_vars_bs <- function(pattern = NULL,



#' Search AdminLTE 2 (shinydashboard) variables
#' Search AdminLTE 2 shinydashboard variables
#'
#' @param pattern A pattern to filter the results.
#'
#' @return a \code{data.frame} with two variables:
#' \itemize{
#' \item{\code{variable}: }{name of the variable.}
#' \item{\code{value}: }{default value used in theme.}
#' }
#' @return a `data.frame` with two columns:
#' * `variable` : name of the variable.
#' * `value` default value used.
#'
#' @export
#'
#' @examples
Expand Down
2 changes: 1 addition & 1 deletion man/adminlte_color.Rd

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

2 changes: 1 addition & 1 deletion man/adminlte_global.Rd

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

2 changes: 1 addition & 1 deletion man/adminlte_sidebar.Rd

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

2 changes: 1 addition & 1 deletion man/adminlte_vars.Rd

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

10 changes: 5 additions & 5 deletions man/search_vars_adminlte2.Rd

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

6 changes: 3 additions & 3 deletions man/search_vars_bs.Rd

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

8 changes: 4 additions & 4 deletions man/search_vars_bs4dash.Rd

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

0 comments on commit 6c12978

Please sign in to comment.