Removes version selections from the current session. This covers both
versions pinned explicitly with codeminer_set_version() and versions
auto-cached on first "latest" resolution.
Arguments
- lookup
Character vector of code types whose lookup version should be cleared (e.g.
"ICD-10").NULL(default) means no lookup versions are cleared unless all arguments areNULL.- relationship
Character vector of code types whose relationship version should be cleared.
NULL(default) means no relationship versions are cleared unless all arguments areNULL.- mapping
Character vector of mapping keys (
"from > to"format) whose version should be cleared.NULL(default) means no mapping versions are cleared unless all arguments areNULL.
Details
Called with no arguments, all version selections are cleared and subsequent
queries will re-resolve "latest" from the database. To clear only
specific code types, pass them as character vectors.
Examples
if (FALSE) { # \dontrun{
# Clear all version selections
codeminer_clear_versions()
# Clear only the ICD-10 lookup version
codeminer_clear_versions(lookup = "ICD-10")
# Clear lookup and relationship versions for SNOMED CT
codeminer_clear_versions(
lookup = "SNOMED CT",
relationship = "SNOMED CT"
)
} # }