paper <- demopaper()
mo <- module_run(paper, "ref_replication")
mo$traffic_light#> [1] "info"
mo$summary_text#> [1] "We found 1 replication for 1 original you cited."
The ref_replication module cross-references the paper’s cited references against the FLoRA replication database. If you cite an original study that has since been the subject of a replication attempt, that is highly relevant context — especially if the replication failed. The module flags cited originals that have known replications, and can report the replication’s outcome.
This module makes live network calls to the FLoRA replication database. You need an internet connection to run the code below.
demopaper() cites an original study that has a recorded replication.
paper <- demopaper()
mo <- module_run(paper, "ref_replication")
mo$traffic_light#> [1] "info"
mo$summary_text#> [1] "We found 1 replication for 1 original you cited."
The table matches each cited original to its replication(s):
By default the module reports that a replication exists. Set show_outcomes = TRUE to also include the outcome of each replication (for example, whether it was successful), which adds the replication_outcome and replication_type information to the report:
mo <- module_run(psychsci[1:10], "ref_replication", show_outcomes = TRUE)
mo$summary_tableA match means a replication of a cited study exists in the database — it is an invitation to check whether the replication’s result changes how you should cite the original. As always, the module surfaces information for human judgement.
| Argument | Default | Effect |
|---|---|---|
paper |
— | the paper or paperlist to check |
show_outcomes |
FALSE |
include the outcome and type of each replication |
The module matches references against a data frame called FLoRA that ships with Metacheck. The FLoRA replication database grows as new replications are recorded, so the bundled copy gradually goes out of date. Two functions help you manage it:
FLoRA_date() # the date the bundled database was last updated
FLoRA_update() # download the newest version of the FLoRA databaseFLoRA_update() downloads the latest FLoRA data (>5 MB), summarises it into a compact form, deletes the large original, and caches the result so subsequent checks use the fresh data. Run it occasionally to pick up replications added since your installed version of Metacheck.