as_docinfo() coerces objects into a docinfo() object.
as_docinfo(x, ...)
# S3 method for xmp
as_docinfo(x, ...)An object that can reasonably be coerced to a docinfo() object.
Further arguments passed to or from other methods.
A docinfo() object.
x <- xmp(`dc:Creator` = "John Doe", `dc:Title` = "A Title")
as_docinfo(x)
#> Author: John Doe
#> CreationDate: NULL
#> Creator: NULL
#> Producer: NULL
#> Title: A Title
#> Subject: NULL
#> Keywords:
#> ModDate: NULL