wait_and_window | R Documentation |
Compare a time from the past (then
) to the current time (now
, default:
Sys.time()
) and see if wait
seconds (default: 1 week) has passed.
additionally, only return TRUE
if the current time is between the hours
given in window
(if window
is null, then always return)
wait_and_window( then, now = Sys.time(), wait = as.numeric(Sys.getenv("PHOTOTWEETR_WAIT", one_week)), window = c(8, 22), verbose = TRUE )
then |
a previous time ( |
now |
the current time (default: |
wait |
the seconds to wait between |
window |
hours between which to return |
verbose |
should the wait/window |
logical
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.