tests/testthat/test_pipelines_parse_all_good/pipe1.R

#' Simple mtcars print function
#'
#' This is a function that runs every hour starting at
#' 2024-03-01 09:00:00
#'
#' @maestroFrequency 1 day
#' @maestroStartTime 2024-03-01 09:00:00
#' @maestroTz UTC
#' @maestroLogLevel INFO
#'
#' @export
get_mtcars <- function() {
  Sys.sleep(0.02)
  mtcars
}

#' Multiply
#'
#' @maestroFrequency 3 month
#' @maestroLogLevel warn
#'
#' @export
wait <- function() {
  Sys.sleep(0.01)
}

#' Add
#'
#' @maestroFrequency 3 month
#' @maestroStartTime 1970-01-01
#'
#' @export
add <- function() {
  invisible()
}

#' Something
#'
#' @maestroFrequency 3 month
#' @maestroStartTime 1970-01-01 00:00:00 ADT
#'
#' @export
something <- function() {
  invisible()
}

#' Daily
#'
#' @maestroFrequency daily
#' @maestroStartTime 1970-01-01 00:00:00 ADT
#'
#' @export
something2 <- function() {
  invisible()
}

Try the maestro package in your browser

Any scripts or data that you put into this service are public.

maestro documentation built on June 8, 2025, 10:44 a.m.