Runs a number of checks on px object to see if it is valid.
Arguments
- x
A supposed px object.
Details
This check is run by default by all px_*
functions, but can be skipped by
using validate = FALSE
. This can be useful on large px objects where the
checks are time consuming. Instead of validating on every modifying function
px_validate()
can be run as the final step to validate the object.
Examples
# Turn of validation for modifying functions, and manually
# run validation as final step in creating px object.
x1 <-
px(population_gl, validate = FALSE) |>
px_title("Test", validate = FALSE) |>
px_validate()
px_save(x1, 'validated.px')