powered by
unwrap_as creates a new variable which, when evaluated, calls contents to return the parcel contents.
unwrap_as
contents
unwrap_as(x, parcel, env = parent.frame())
name of the variable to bind to
an object of class 'parcel'
environment to assign the variable into
Other wrapping functions: contents, is.parcel, wrapset, wrap
is.parcel
wrapset
wrap
# NOT RUN { vec <- 1:10 parcel <- wrapset(vec, vec > 3) unwrap_as(y, parcel) y # }
Run the code above in your browser using DataLab