-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from jread-usgs/always_stale
Create an "always stale" target that generates the hash table of parser functions
- Loading branch information
Showing
8 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
hash: 03e6cfda99af1b92b1bb210c4aaa6caa | ||
hash: 18e611c05b9a37c1a1277e059419d724 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
build/status/N2JfdGVtcF9tZXJnZS9vdXQvc291cmNlX21ldGFkYXRhX2Zvcl9yZWxlYXNlLmNzdi5pbmQ.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
#' write a unique value to a text file when this function is called. | ||
#' Replaces existing text in the file | ||
#' | ||
#' @param filepath a text filepath that can be written to | ||
#' | ||
#' @details this function is used to keep a dependency stale always, assuming this function is called whenever | ||
#' that file is referenced and there is at least a paired target use of the file. | ||
#' The file is kept stale by writing the current time (with timezone offset) and a random number. The random | ||
#' number is used because this function could be called rapidly several times within the same second. | ||
make_file_stale <- function(filepath){ | ||
cat(file = filepath, paste0(format(Sys.time(), '%m/%d/%y %H:%M:%S %z; random ID: '), sample(1E6, 1))) | ||
} |