Skip to content
Snippets Groups Projects
Commit 8e5f46f4 authored by David Dorchies's avatar David Dorchies :zany_face:
Browse files

docs(list_reports): fix messy parameter

Refs #4
parent f7366e4c
No related branches found
No related tags found
No related merge requests found
Pipeline #174667 passed
#' List reports with headers #' List reports with headers
#' #'
#' @param reports_dir [character] path for the reports #' @param reports_dir [character] path for the reports
#' @param reports [character] subfolders containing each report. By default, #' @param reports [character] subfolders containing each report.
#' reports are folders in `reports_dir` that match `pattern`
#' @param pattern [character] regex pattern for filtering report directories in
#' `reports_dir` folder (ignored if `reports` is provided)
#' @param index [character] name of the report index file #' @param index [character] name of the report index file
#' #'
#' @return A [data.frame] containing one row by report found. Each row contain the following columns: #' @return A [data.frame] containing one row by report found. Each row contain the following columns:
......
#' Render reports #' Render fairify reports
#' #'
#' @param reports_dir [character] path for the reports #' @inheritParams list_reports
#' @param reports [character] subfolders containing each report
#' @param publish_dir [character] rendering output path relatively to the report #' @param publish_dir [character] rendering output path relatively to the report
#' folder which is in format `"./reports/my_report"` #' folder which is in format `"./reports/my_report"`
#' @param output_format output format, see [bookdown::render_book]. Only #' @param output_format output format, see [bookdown::render_book]. Only
......
...@@ -13,13 +13,9 @@ list_reports( ...@@ -13,13 +13,9 @@ list_reports(
\arguments{ \arguments{
\item{reports_dir}{\link{character} path for the reports} \item{reports_dir}{\link{character} path for the reports}
\item{reports}{\link{character} subfolders containing each report. By default, \item{reports}{\link{character} subfolders containing each report.}
reports are folders in \code{reports_dir} that match \code{pattern}}
\item{index}{\link{character} name of the report index file} \item{index}{\link{character} name of the report index file}
\item{pattern}{\link{character} regex pattern for filtering report directories in
\code{reports_dir} folder (ignored if \code{reports} is provided)}
} }
\value{ \value{
A \link{data.frame} containing one row by report found. Each row contain the following columns: A \link{data.frame} containing one row by report found. Each row contain the following columns:
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
\name{render_report} \name{render_report}
\alias{render_report} \alias{render_report}
\alias{render_reports} \alias{render_reports}
\title{Render reports} \title{Render fairify reports}
\usage{ \usage{
render_report( render_report(
input, input,
...@@ -41,7 +41,7 @@ used (possibly not specified, either, in which case a directory name ...@@ -41,7 +41,7 @@ used (possibly not specified, either, in which case a directory name
\item{reports_dir}{\link{character} path for the reports} \item{reports_dir}{\link{character} path for the reports}
\item{reports}{\link{character} subfolders containing each report} \item{reports}{\link{character} subfolders containing each report.}
\item{publish_dir}{\link{character} rendering output path relatively to the report \item{publish_dir}{\link{character} rendering output path relatively to the report
folder which is in format \code{"./reports/my_report"}} folder which is in format \code{"./reports/my_report"}}
...@@ -50,7 +50,7 @@ folder which is in format \code{"./reports/my_report"}} ...@@ -50,7 +50,7 @@ folder which is in format \code{"./reports/my_report"}}
\code{NULL}, this function is used for side effect. \code{NULL}, this function is used for side effect.
} }
\description{ \description{
Render reports Render fairify reports
} }
\examples{ \examples{
# Create a fairify project in a temporary folder # Create a fairify project in a temporary folder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment