These options will be used on objects of type weakref. weakref objects
are rarely encountered and there is no base R function to create them. However
rlang has a new_weakref function that we can use.
Usage
opts_weakref(constructor = c("new_weakref"), ...)