# NOT RUN {
call_conditionally(get_package_version,
condition = TRUE,
args = list(x = "fritools"),
fallback = "0.0")
call_conditionally(get_package_version,
condition = FALSE,
args = list(x = "fritools"),
fallback = "0.0")
call_conditionally(get_package_version,
condition = TRUE,
args = list(x = "not_there"),
harden = TRUE,
fallback = "0.0")
# }
Run the code above in your browser using DataLab