Skip to content
Snippets Groups Projects
Commit ec49cf21 authored by Dorch's avatar Dorch
Browse files

docs: add example on create_reports

Refs #3
parent d1d89055
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
#' @export #' @export
#' #'
#' @examples #' @examples
#' path <- tempdir()
#' create_reports(path)
#' list.files(path, recursive = TRUE)
create_reports <- function(path = ".", overwrite = FALSE) { create_reports <- function(path = ".", overwrite = FALSE) {
# Copy templates # Copy templates
if (dir.exists(file.path(path, "templates"))) { if (dir.exists(file.path(path, "templates"))) {
......
...@@ -17,3 +17,8 @@ Use for side effect. ...@@ -17,3 +17,8 @@ Use for side effect.
\description{ \description{
Set reports folder structure Set reports folder structure
} }
\examples{
path <- tempdir()
create_reports(path)
list.files(path, recursive = TRUE)
}
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