prepInputsLog: URL access log for 'prepInputs' / 'preProcess'

View source: R/urlLog.R

prepInputsLogR Documentation

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()

Value

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

Examples


# 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())


reproducible documentation built on Aug. 26, 2026, 1:07 a.m.