Skip to content

Commit 21cf086

Browse files
committed
Add example to create_batch_pathways_certificates()
1 parent 02e21dc commit 21cf086

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

R/create_certificate.R

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ create_batch_certificates <- function(
192192
"i" = paste(" Error:", e$message)
193193
)
194194
)
195-
},
195+
},
196196
warning = function(w) {
197197
cli::cli_inform(
198198
c(
@@ -217,6 +217,18 @@ create_batch_certificates <- function(
217217
#' The path to the output directory. Individual certificate creation failures
218218
#' will be reported but won't stop the batch process.
219219
#'
220+
#' @examples
221+
#' \dontrun{
222+
#' participants <- read_csv("zoom-participants.csv")
223+
#'
224+
#' create_batch_pathways_certificates(
225+
#' particpants,
226+
#' start_date = "2024-01-01",
227+
#' end_date = "2024-02-01",
228+
#' "~/Desktop/pathways-certificates"
229+
#' )
230+
#' }
231+
#'
220232
#' @export
221233
create_batch_pathways_certificates <- function(
222234
participants,

0 commit comments

Comments
 (0)