cp_lb_attributes: Copy special libbib attributes from one object to another

View source: R/special-attributes.R

cp_lb_attributesR Documentation

Copy special libbib attributes from one object to another

Description

Takes two objects and copies all special libbib attributes (attributes beginning with lb.) from the first object to the second, by reference.

Usage

cp_lb_attributes(a, b)

Arguments

a

The first object (the one with the attributes to copy)

b

The second object (the one to copy those attributes to)

Value

Nothing, since the object is modified by reference.

Examples


tmp1 <- "a"
set_lb_date(tmp1, "2021-05-08")
set_lb_attribute(tmp1, "note", "just an example")

tmp2 <- "b"
cp_lb_attributes(tmp1, tmp2)
attributes(tmp2)$lb.date
# [1] "2021-05-08"
attributes(tmp2)$lb.note
# [1] "just an example"


libbib documentation built on Nov. 10, 2022, 6:16 p.m.