Skip to contents

Inspect or change COPYRIGHT.

Usage

px_copyright(x, value)

# S3 method for class 'px'
px_copyright(x, value)

Arguments

x

A px object

value

Optional. A character string. If missing, the current COPYRIGHT is returned. If NULL, COPYRIGHT is removed.

Value

A px object or a character string.

Examples

# Set COPYRIGHT
x1 <-
   px(population_gl) |>
   px_copyright('YES')

# Print COPYRIGHT
px_copyright(x1)
#> [1] "YES"

# Remove COPYRIGHT
x2 <- px_copyright(x1, NULL)
px_copyright(x2)
#> NULL