Learn R Programming

pointblank (version 0.5.2)

agent_read: Read an agent from disk

Description

An agent that has been written to disk (with agent_write()) can be read back into memory with the agent_read() function. Once the agent has been read, it may not have a data table associated with it (depending on whether the keep_tbl option was TRUE or FALSE when writing to disk) but it should still be able to produce an agent report (by printing the agent to the console or using get_agent_report()), return an agent x-list (with get_agent_x_list()), and yield any available data extracts with get_data_extracts(). Furthermore, all of its validation steps will still be present (along with results from any interrogation).

Usage

agent_read(path)

Arguments

path

The path to the file that was previously written by agent_write().

Details

Should the agent possess a table-reading function (can be set any time with set_read_fn()) or a specific table (settable with set_tbl()) we could use the interrogate() function again. This is useful for tables that evolve over time and need periodic data quality assessments with the same validation steps (and more steps can be added as well).