/usr/share/doc/r-cran-filehash/tests/versions.R is in r-cran-filehash 2.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Test databases
suppressMessages(library(filehash))
testdblist <- dir(pattern = glob2rx("testdb-v*"))
for(testname in testdblist) {
msg <- sprintf("DATABASE: %s\n", testname)
cat(paste(rep("=", nchar(msg)), collapse = ""), "\n")
cat(msg)
cat(paste(rep("=", nchar(msg)), collapse = ""), "\n")
db <- dbInit(testname, "DB1")
keys <- dbList(db)
print(keys)
for(k in keys) {
cat("key:", k, "\n")
val <- dbFetch(db, k)
print(val)
cat("\n")
}
}
|