Skip to content

Commit

Permalink
Allow assignment into xpose_data class without conversion to uneval
Browse files Browse the repository at this point in the history
  • Loading branch information
billdenney committed Jan 18, 2019
1 parent 5f23dd0 commit 0934667
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion R/xpose_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,10 @@ xpose_data <- function(runno = NULL,
structure(class = c('xpose_data', 'uneval'))
}


#' Allow assignment into xpose_data without conversion to class uneval
`[[<-.xpose_data` <- function(x, i, value) {
x <- unclass(x)
x[[i]] <- value
as.xpdb(x)
}
`$<-.xpose_data` <- `[[<-.xpose_data`

0 comments on commit 0934667

Please sign in to comment.