Get the current origin for each reuse
get_current_origin.RdGet the current origin for each reuse
Arguments
- as
Whether to return the origin as
charactervalue (can also be specified by passingstringortext), as anumericvalue (can also be specified by passingnumber), or asPOSIXtime (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, theformatto 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-07 17:53:28 CEST";
#>
#> 🦑 You can then pass `origin = SQUID_origin` when
#> 🦑 calling `squids::squids()`.
#>
#> [1] "2025-06-07 17:53:28 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-07 17:53:28 CEST";
#>
#> 🦑 You can then pass `origin = SQUID_origin` when
#> 🦑 calling `squids::squids()`.
#>
#> [1] 1749311609
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-07 17:53:28 CEST";
#>
#> 🦑 You can then pass `origin = SQUID_origin` when
#> 🦑 calling `squids::squids()`.
#>
#> [1] "2025-06-07 17:53:28 CEST"