Get the current origin for each reuse
get_current_origin.Rd
Get the current origin for each reuse
Arguments
- as
Whether to return the origin as
character
value (can also be specified by passingstring
ortext
), as anumeric
value (can also be specified by passingnumber
), or asPOSIX
time (can also be specified by passingtime
).- suppressPrinting
Whether to suppress printing the message about how to store the origin in your R script.
- format
If returning
character
, theformat
to pass tobase::format()
when formatting the time to a character value
Examples
squids::get_current_origin();
#> 🦑 To human-readably store an origin so that
#> 🦑 you can reproduce the same sequence of SQUIDs,
#> 🦑 you can use the following line in your R script:
#>
#> SQUID_origin <- "2025-06-04 22:18:53 CEST";
#>
#> 🦑 You can then pass `origin = SQUID_origin` when
#> 🦑 calling `squids::squids()`.
#>
#> [1] "2025-06-04 22:18:53 CEST"
squids::get_current_origin(
as = "number"
);
#> 🦑 To human-readably store an origin so that
#> 🦑 you can reproduce the same sequence of SQUIDs,
#> 🦑 you can use the following line in your R script:
#>
#> SQUID_origin <- "2025-06-04 22:18:53 CEST";
#>
#> 🦑 You can then pass `origin = SQUID_origin` when
#> 🦑 calling `squids::squids()`.
#>
#> [1] 1749068334
squids::get_current_origin(
as = "time"
);
#> 🦑 To human-readably store an origin so that
#> 🦑 you can reproduce the same sequence of SQUIDs,
#> 🦑 you can use the following line in your R script:
#>
#> SQUID_origin <- "2025-06-04 22:18:53 CEST";
#>
#> 🦑 You can then pass `origin = SQUID_origin` when
#> 🦑 calling `squids::squids()`.
#>
#> [1] "2025-06-04 22:18:53 CEST"