logHash: Write 'hashdata' to SQLite database

Description Usage Arguments Value Author(s) Examples

Description

If the SQLite database already exists, hashdata argument is append if not already present.

Usage

1
logHash(hashdata, dbHash = getOption("webdatabases.dbfile"))

Arguments

hashdata

A data.frame containing filename, checksumFile, checksumSize and algorithm for each file are stored.

dbHash

Character string. The path to the database file where checksum value of file is logged. If the database does not yet exist, one is created. Default is to use the option webdatabases.dbfile.

Value

Invoked for its side-effect of logging filenames and checksum values into the SQL database.

Author(s)

Melina Houle

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
destFile <-tempdir()
dbFile <- basename(getOption("webdatabases.dbfile")
dbHash <- file.path(destFile, dbFile)
file.list<- list.files(destFile)
hFile <- hList(file.list, destFile, quick = TRUE)
logHash(hFile, dbHash)

## End(Not run)

PredictiveEcology/webDatabases documentation built on May 8, 2019, 3:09 p.m.