Description Usage Arguments Details Examples
These functions serve common use cases for timestamp fetching. See also
fetchTimestampHelpers, which allows you to write still more customized
methods, and pre-defined fetchTimestamp()
methods for several fetchers
supported by vizlab
.
1 2 3 | alwaysCurrent(viz)
neverCurrent(viz)
|
viz |
the identifier for a fetch item in viz.yaml |
alwaysCurrent
- writes a timestamp file just once, the first time the data
file is present when fetchTimestamp is called. Edits the modified time,
mtime, of the timestamp file to equal the modified time of the data file, so
that on subsequent builds the data file is always up to date relative to the
timestamp file. REFETCHES MAY STILL OCCUR if there are changes to the fetch
item's viz.yaml chunk, scripts, or other dependencies.
1 2 | fetchTimestamp.myfetcher <- alwaysCurrent
fetchTimestamp.myotherfetcher <- neverCurrent
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.