This function allows a user to flexibly extract information as it loops over the publication files. Two main internal use-cases exist for this. First, it is used to install models as is done in insall_models() and, second, it is used to populate the remote MongoDB. Most users will not be interested in this function, but it is exposed for usage in the allodata package.

map_publications(verbose, func, pub_path = NULL, params_path = NULL)

Arguments

verbose

Whether or not to print verbose messages to console

func

The publication processing function. It should take a Publication object as its only argument.

pub_path

An optional path to a publication directory, by default the internally stored set of publications is used.

params_path

An optional path to a parameters directory, by default the internally stored set of parameter files is used.