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)
Whether or not to print verbose messages to console
The publication processing function. It should take a Publication object as its only argument.
An optional path to a publication directory, by default the internally stored set of publications is used.
An optional path to a parameters directory, by default the internally stored set of parameter files is used.