Learn R Programming

reproducible (version 3.2.1)

prepInputsLog: URL access log for prepInputs / preProcess

Description

Controlled by getOption("reproducible.urlLog"). See the package option documentation for modes. prepInputsLog() returns the package-level in-memory records, which are populated in the default (NULL) and TRUE modes; clearUrlLog() empties them. Records written to an environment or function sink live there instead and are not retrievable through these accessors. Set the option to FALSE to disable logging entirely.

Usage

prepInputsLog()

clearUrlLog()

Arguments

Value

prepInputsLog() returns a list of record lists. clearUrlLog()

returns NULL invisibly.

Examples

Run this code
if (FALSE) { # identical(Sys.getenv("NOT_CRAN"), "true")
# Every prepInputs()/preProcess() call that resolves a url records it, so a
# completed run can report exactly which data sources it pulled.
clearUrlLog()
prepInputsLog() # empty at the start of a session

# After any prepInputs()/preProcess() work, the log holds one record per url;
# rbindlist() turns it into a table for reporting.
# data.table::rbindlist(prepInputsLog())
}

Run the code above in your browser using DataLab